debian-mirror-gitlab/app/assets/javascripts/pages/projects/edit/index.js

33 lines
1.3 KiB
JavaScript
Raw Normal View History

2018-11-20 20:47:30 +05:30
import { PROJECT_BADGE } from '~/badges/constants';
2021-12-11 22:18:48 +05:30
import initLegacyConfirmDangerModal from '~/confirm_danger_modal';
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';
2021-03-11 19:13:27 +05:30
import mountBadgeSettings from '~/pages/shared/mount_badge_settings';
2020-10-24 23:57:45 +05:30
import initProjectDeleteButton from '~/projects/project_delete_button';
2020-07-28 23:09:34 +05:30
import initServiceDesk from '~/projects/settings_service_desk';
2021-03-11 19:13:27 +05:30
import initSearchSettings from '~/search_settings';
import initSettingsPanels from '~/settings_panels';
import setupTransferEdit from '~/transfer_edit';
import UserCallout from '~/user_callout';
2021-12-11 22:18:48 +05:30
import initTopicsTokenSelector from '~/projects/settings/topics';
2021-03-11 19:13:27 +05:30
import initProjectPermissionsSettings from '../shared/permissions';
import initProjectLoadingSpinner from '../shared/save_project_loader';
2018-03-17 18:26:18 +05:30
2021-03-11 19:13:27 +05:30
initFilePickers();
2021-12-11 22:18:48 +05:30
initLegacyConfirmDangerModal();
2021-03-11 19:13:27 +05:30
initSettingsPanels();
initProjectDeleteButton();
mountBadgeSettings(PROJECT_BADGE);
2019-07-31 22:56:46 +05:30
2021-03-11 19:13:27 +05:30
new UserCallout({ className: 'js-service-desk-callout' }); // eslint-disable-line no-new
initServiceDesk();
2020-07-28 23:09:34 +05:30
2021-03-11 19:13:27 +05:30
initProjectLoadingSpinner();
initProjectPermissionsSettings();
setupTransferEdit('.js-project-transfer-form', 'select.select2');
2019-07-31 22:56:46 +05:30
2021-10-27 15:23:28 +05:30
dirtySubmitFactory(document.querySelectorAll('.js-general-settings-form, .js-mr-settings-form'));
2021-03-08 18:12:59 +05:30
2021-03-11 19:13:27 +05:30
initSearchSettings();
2021-12-11 22:18:48 +05:30
initTopicsTokenSelector();