summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConstance Okoghenun <cokoghenun@gitlab.com>2018-02-23 21:23:27 +0100
committerConstance Okoghenun <cokoghenun@gitlab.com>2018-02-23 21:23:27 +0100
commitfd598fd6bda91343d7e271c0fe485ead9e0011d2 (patch)
tree62e7eacb8bbdd5b54f555e97c14c98ec96223280
parent132452a6c17704159a0f99fc04b290a3fc1e2f59 (diff)
downloadgitlab-ce-fd598fd6bda91343d7e271c0fe485ead9e0011d2.tar.gz
Removed protected_tags webpack bundle
-rw-r--r--app/assets/javascripts/pages/projects/settings/repository/show/index.js10
-rw-r--r--app/assets/javascripts/protected_tags/index.js9
-rw-r--r--app/views/projects/protected_tags/_index.html.haml3
-rw-r--r--config/webpack.config.js1
4 files changed, 9 insertions, 14 deletions
diff --git a/app/assets/javascripts/pages/projects/settings/repository/show/index.js b/app/assets/javascripts/pages/projects/settings/repository/show/index.js
index d88527351c1..f46372faed8 100644
--- a/app/assets/javascripts/pages/projects/settings/repository/show/index.js
+++ b/app/assets/javascripts/pages/projects/settings/repository/show/index.js
@@ -1,3 +1,11 @@
+/* eslint-disable no-new */
+
+import ProtectedTagCreate from '~/protected_tags/protected_tag_create';
+import ProtectedTagEditList from '~/protected_tags/protected_tag_edit_list';
import initSettingsPanels from '~/settings_panels';
-document.addEventListener('DOMContentLoaded', initSettingsPanels);
+document.addEventListener('DOMContentLoaded', () => {
+ new ProtectedTagCreate();
+ new ProtectedTagEditList();
+ initSettingsPanels();
+});
diff --git a/app/assets/javascripts/protected_tags/index.js b/app/assets/javascripts/protected_tags/index.js
deleted file mode 100644
index b1618e24e49..00000000000
--- a/app/assets/javascripts/protected_tags/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-/* eslint-disable no-unused-vars */
-
-import ProtectedTagCreate from './protected_tag_create';
-import ProtectedTagEditList from './protected_tag_edit_list';
-
-$(() => {
- const protectedtTagCreate = new ProtectedTagCreate();
- const protectedtTagEditList = new ProtectedTagEditList();
-});
diff --git a/app/views/projects/protected_tags/_index.html.haml b/app/views/projects/protected_tags/_index.html.haml
index 74f7f63c941..6b284fda35c 100644
--- a/app/views/projects/protected_tags/_index.html.haml
+++ b/app/views/projects/protected_tags/_index.html.haml
@@ -1,6 +1,3 @@
-- content_for :page_specific_javascripts do
- = webpack_bundle_tag('protected_tags')
-
- content_for :create_protected_tag do
= render 'projects/protected_tags/create_protected_tag'
diff --git a/config/webpack.config.js b/config/webpack.config.js
index 9db6ecd27af..7f3b279b062 100644
--- a/config/webpack.config.js
+++ b/config/webpack.config.js
@@ -71,7 +71,6 @@ var config = {
profile: './profile/profile_bundle.js',
project_import_gl: './projects/project_import_gitlab_project.js',
protected_branches: './protected_branches',
- protected_tags: './protected_tags',
registry_list: './registry/index.js',
sidebar: './sidebar/sidebar_bundle.js',
snippet: './snippet/snippet_bundle.js',