14e2412ee4
This is a port MR for CE Original MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14141
19 lines
560 B
JavaScript
19 lines
560 B
JavaScript
import IssuableBulkUpdateSidebar from './issuable_bulk_update_sidebar';
|
|
import issuableBulkUpdateActions from './issuable_bulk_update_actions';
|
|
|
|
export default {
|
|
bulkUpdateSidebar: null,
|
|
|
|
init(prefixId) {
|
|
const bulkUpdateEl = document.querySelector('.issues-bulk-update');
|
|
const alreadyInitialized = Boolean(this.bulkUpdateSidebar);
|
|
|
|
if (bulkUpdateEl && !alreadyInitialized) {
|
|
issuableBulkUpdateActions.init({ prefixId });
|
|
|
|
this.bulkUpdateSidebar = new IssuableBulkUpdateSidebar();
|
|
}
|
|
|
|
return this.bulkUpdateSidebar;
|
|
},
|
|
};
|