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';
|
|
|
|
import setupProjectEdit from '~/project_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';
|
2019-07-07 11:18:12 +05:30
|
|
|
import initAvatarPicker from '~/avatar_picker';
|
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';
|
|
|
|
|
2018-03-27 19:54:05 +05:30
|
|
|
document.addEventListener('DOMContentLoaded', () => {
|
2019-07-07 11:18:12 +05:30
|
|
|
initAvatarPicker();
|
2018-05-09 12:01:36 +05:30
|
|
|
initConfirmDangerModal();
|
2019-07-31 22:56:46 +05:30
|
|
|
initSettingsPanels();
|
2018-11-20 20:47:30 +05:30
|
|
|
mountBadgeSettings(PROJECT_BADGE);
|
2019-07-31 22:56:46 +05:30
|
|
|
|
|
|
|
initProjectLoadingSpinner();
|
|
|
|
initProjectPermissionsSettings();
|
|
|
|
setupProjectEdit();
|
|
|
|
|
|
|
|
dirtySubmitFactory(
|
|
|
|
document.querySelectorAll(
|
|
|
|
'.js-general-settings-form, .js-mr-settings-form, .js-mr-approvals-form',
|
|
|
|
),
|
|
|
|
);
|
2018-03-27 19:54:05 +05:30
|
|
|
});
|