debian-mirror-gitlab/app/assets/javascripts/issuable/bulk_update_sidebar/index.js

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

30 lines
744 B
JavaScript
Raw Normal View History

2022-03-02 08:16:31 +05:30
import Vue from 'vue';
import StatusSelect from './components/status_select.vue';
import issuableBulkUpdateActions from './issuable_bulk_update_actions';
import IssuableBulkUpdateSidebar from './issuable_bulk_update_sidebar';
export function initBulkUpdateSidebar(prefixId) {
const el = document.querySelector('.issues-bulk-update');
if (!el) {
return;
}
issuableBulkUpdateActions.init({ prefixId });
new IssuableBulkUpdateSidebar(); // eslint-disable-line no-new
}
export function initIssueStatusSelect() {
const el = document.querySelector('.js-issue-status');
if (!el) {
return null;
}
return new Vue({
el,
2022-04-04 11:22:00 +05:30
name: 'StatusSelectRoot',
2022-03-02 08:16:31 +05:30
render: (createElement) => createElement(StatusSelect),
});
}