Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-19 15:09:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-19 15:09:20 +0300
commit6559f0ee67c564d62e12936e91cef6abf37ce102 (patch)
treeac843e2187f4fa22eade9be5ae380a7fc793e31b /app/assets/javascripts/snippet
parent93e4425400aa60f54f1bbccb26ef6581503952f3 (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.js16
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();