diff options
-rw-r--r-- | app/assets/javascripts/protected_branches/index.js | 11 | ||||
-rw-r--r-- | app/assets/javascripts/protected_tags/index.js | 11 |
2 files changed, 18 insertions, 4 deletions
diff --git a/app/assets/javascripts/protected_branches/index.js b/app/assets/javascripts/protected_branches/index.js index f4744327402..c9e7af127d2 100644 --- a/app/assets/javascripts/protected_branches/index.js +++ b/app/assets/javascripts/protected_branches/index.js @@ -1,2 +1,9 @@ -export { default as ProtectedBranchCreate } from './protected_branch_create'; -export { default as ProtectedBranchEditList } from './protected_branch_edit_list'; +/* eslint-disable no-unused-vars */ + +import ProtectedBranchCreate from './protected_branch_create'; +import ProtectedBranchEditList from './protected_branch_edit_list'; + +$(() => { + const protectedBranchCreate = new ProtectedBranchCreate(); + const protectedBranchEditList = new ProtectedBranchEditList(); +}); diff --git a/app/assets/javascripts/protected_tags/index.js b/app/assets/javascripts/protected_tags/index.js index 61e7ba53862..b1618e24e49 100644 --- a/app/assets/javascripts/protected_tags/index.js +++ b/app/assets/javascripts/protected_tags/index.js @@ -1,2 +1,9 @@ -export { default as ProtectedTagCreate } from './protected_tag_create'; -export { default as ProtectedTagEditList } from './protected_tag_edit_list'; +/* 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(); +}); |