2018-11-20 20:47:30 +05:30
|
|
|
import { PROJECT_BADGE } from '~/badges/constants';
|
2018-03-17 18:26:18 +05:30
|
|
|
import initSettingsPanels from '~/settings_panels';
|
2019-12-04 20:38:33 +05:30
|
|
|
import setupTransferEdit from '~/transfer_edit';
|
2018-05-09 12:01:36 +05:30
|
|
|
import initConfirmDangerModal from '~/confirm_danger_modal';
|
2018-11-20 20:47:30 +05:30
|
|
|
import mountBadgeSettings from '~/pages/shared/mount_badge_settings';
|
2019-07-31 22:56:46 +05:30
|
|
|
import dirtySubmitFactory from '~/dirty_submit/dirty_submit_factory';
|
2020-06-23 00:09:42 +05:30
|
|
|
import initFilePickers from '~/file_pickers';
|
2018-10-15 14:42:47 +05:30
|
|
|
import initProjectLoadingSpinner from '../shared/save_project_loader';
|
2018-03-17 18:26:18 +05:30
|
|
|
import initProjectPermissionsSettings from '../shared/permissions';
|
2020-10-24 23:57:45 +05:30
|
|
|
import initProjectDeleteButton from '~/projects/project_delete_button';
|
2020-07-28 23:09:34 +05:30
|
|
|
import UserCallout from '~/user_callout';
|
|
|
|
import initServiceDesk from '~/projects/settings_service_desk';
|
2021-03-08 18:12:59 +05:30
|
|
|
import mountSearchSettings from './mount_search_settings';
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2020-06-23 00:09:42 +05:30
|
|
|
initFilePickers();
|
2018-05-09 12:01:36 +05:30
|
|
|
initConfirmDangerModal();
|
2019-07-31 22:56:46 +05:30
|
|
|
initSettingsPanels();
|
2020-10-24 23:57:45 +05:30
|
|
|
initProjectDeleteButton();
|
2018-11-20 20:47:30 +05:30
|
|
|
mountBadgeSettings(PROJECT_BADGE);
|
2019-07-31 22:56:46 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
new UserCallout({ className: 'js-service-desk-callout' }); // eslint-disable-line no-new
|
|
|
|
initServiceDesk();
|
|
|
|
|
2019-07-31 22:56:46 +05:30
|
|
|
initProjectLoadingSpinner();
|
|
|
|
initProjectPermissionsSettings();
|
2019-12-04 20:38:33 +05:30
|
|
|
setupTransferEdit('.js-project-transfer-form', 'select.select2');
|
2019-07-31 22:56:46 +05:30
|
|
|
|
|
|
|
dirtySubmitFactory(
|
|
|
|
document.querySelectorAll(
|
|
|
|
'.js-general-settings-form, .js-mr-settings-form, .js-mr-approvals-form',
|
|
|
|
),
|
|
|
|
);
|
2021-03-08 18:12:59 +05:30
|
|
|
|
|
|
|
mountSearchSettings();
|
2018-03-27 19:54:05 +05:30
|
|
|
});
|