debian-mirror-gitlab/app/assets/javascripts/issues/dashboard/index.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
638 B
JavaScript
Raw Normal View History

2023-01-13 00:05:48 +05:30
import Vue from 'vue';
import { parseBoolean } from '~/lib/utils/common_utils';
import IssuesDashboardApp from './components/issues_dashboard_app.vue';
export function mountIssuesDashboardApp() {
const el = document.querySelector('.js-issues-dashboard');
if (!el) {
return null;
}
const { calendarPath, emptyStateSvgPath, isSignedIn, rssPath } = el.dataset;
return new Vue({
el,
name: 'IssuesDashboardRoot',
provide: {
calendarPath,
emptyStateSvgPath,
isSignedIn: parseBoolean(isSignedIn),
rssPath,
},
render: (createComponent) => createComponent(IssuesDashboardApp),
});
}