Commit f1c20010 authored by Bob Van Landuyt's avatar Bob Van Landuyt

Define `ProtectedTagCreate` & `ProtectedTagEditList` on `gl`

That way they are available to the dispatcher and don't need to be
imported there.
parent ca94b8ee
......@@ -42,7 +42,6 @@ import BlobLinePermalinkUpdater from './blob/blob_line_permalink_updater';
import Landing from './landing';
import BlobForkSuggestion from './blob/blob_fork_suggestion';
import UserCallout from './user_callout';
import { ProtectedTagCreate, ProtectedTagEditList } from './protected_tags';
import ShortcutsWiki from './shortcuts_wiki';
import Pipelines from './pipelines';
import BlobViewer from './blob/viewer/index';
......@@ -416,8 +415,8 @@ import AuditLogs from './audit_logs';
new gl.ProtectedBranchEditList();
new UsersSelect();
// Initialize Protected Tag Settings
new ProtectedTagCreate();
new ProtectedTagEditList();
new gl.ProtectedTagCreate();
new gl.ProtectedTagEditList();
// Initialize expandable settings panels
initSettingsPanels();
break;
......
export { default as ProtectedTagCreate } from './protected_tag_create';
export { default as ProtectedTagEditList } from './protected_tag_edit_list';
/* eslint-disable no-param-reassign */
import ProtectedTagCreate from './protected_tag_create';
import ProtectedTagEditList from './protected_tag_edit_list';
((global) => {
global.gl = global.gl || {};
gl.ProtectedTagCreate = ProtectedTagCreate;
gl.ProtectedTagEditList = ProtectedTagEditList;
})(window);
export { default as ProtectedTagCreate } from './protected_tag_create';
export { default as ProtectedTagEditList } from './protected_tag_edit_list';
/* eslint-disable no-param-reassign */
import ProtectedTagCreate from './protected_tag_create';
import ProtectedTagEditList from './protected_tag_edit_list';
((global) => {
global.gl = global.gl || {};
gl.ProtectedTagCreate = ProtectedTagCreate;
gl.ProtectedTagEditList = ProtectedTagEditList;
})(window);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment