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/snippet | |
parent | 93e4425400aa60f54f1bbccb26ef6581503952f3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/snippet')
-rw-r--r-- | app/assets/javascripts/snippet/snippet_show.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/assets/javascripts/snippet/snippet_show.js b/app/assets/javascripts/snippet/snippet_show.js index 2ef532bc6b7..caa76fc9988 100644 --- a/app/assets/javascripts/snippet/snippet_show.js +++ b/app/assets/javascripts/snippet/snippet_show.js @@ -1,13 +1,13 @@ import initNotes from '~/init_notes'; import loadAwardsHandler from '~/awards_handler'; -import { SnippetShowInit } from '~/snippets'; +import SnippetsShow from '~/snippets/components/show.vue'; +import SnippetsAppFactory from '~/snippets'; import ZenMode from '~/zen_mode'; -document.addEventListener('DOMContentLoaded', () => { - SnippetShowInit(); - initNotes(); - loadAwardsHandler(); +SnippetsAppFactory(document.getElementById('js-snippet-view'), SnippetsShow); - // eslint-disable-next-line no-new - new ZenMode(); -}); +initNotes(); +loadAwardsHandler(); + +// eslint-disable-next-line no-new +new ZenMode(); |