diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-19 15:09:20 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-19 15:09:20 +0300 |
commit | 6559f0ee67c564d62e12936e91cef6abf37ce102 (patch) | |
tree | ac843e2187f4fa22eade9be5ae380a7fc793e31b /app/assets/javascripts/snippets | |
parent | 93e4425400aa60f54f1bbccb26ef6581503952f3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/snippets')
-rw-r--r-- | app/assets/javascripts/snippets/index.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/app/assets/javascripts/snippets/index.js b/app/assets/javascripts/snippets/index.js index d3caec42ce7..2c89c206240 100644 --- a/app/assets/javascripts/snippets/index.js +++ b/app/assets/javascripts/snippets/index.js @@ -8,7 +8,7 @@ import { SNIPPET_LEVELS_MAP, SNIPPET_VISIBILITY_PRIVATE } from '~/snippets/const Vue.use(VueApollo); Vue.use(Translate); -function appFactory(el, Component) { +export default function appFactory(el, Component) { if (!el) { return false; } @@ -45,14 +45,6 @@ function appFactory(el, Component) { }); } -export const SnippetShowInit = () => { - import('./components/show.vue') - .then(({ default: SnippetsShow }) => { - appFactory(document.getElementById('js-snippet-view'), SnippetsShow); - }) - .catch(() => {}); -}; - export const SnippetEditInit = () => { import('./components/edit.vue') .then(({ default: SnippetsEdit }) => { |