summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/blob_edit/blob_bundle.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/blob_edit/blob_bundle.js')
-rw-r--r--app/assets/javascripts/blob_edit/blob_bundle.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/blob_edit/blob_bundle.js b/app/assets/javascripts/blob_edit/blob_bundle.js
index 173c82ef9b0..d26af07d54f 100644
--- a/app/assets/javascripts/blob_edit/blob_bundle.js
+++ b/app/assets/javascripts/blob_edit/blob_bundle.js
@@ -2,6 +2,7 @@
import $ from 'jquery';
import initPopover from '~/blob/suggest_gitlab_ci_yml';
+import initCodeQualityWalkthrough from '~/code_quality_walkthrough';
import { deprecatedCreateFlash as createFlash } from '~/flash';
import { disableButtonIfEmptyField, setCookie } from '~/lib/utils/common_utils';
import Tracking from '~/tracking';
@@ -38,6 +39,13 @@ const initPopovers = () => {
}
};
+const initCodeQualityWalkthroughStep = () => {
+ const codeQualityWalkthroughEl = document.querySelector('.js-code-quality-walkthrough');
+ if (codeQualityWalkthroughEl) {
+ initCodeQualityWalkthrough(codeQualityWalkthroughEl);
+ }
+};
+
export const initUploadForm = () => {
const uploadBlobForm = $('.js-upload-blob-form');
if (uploadBlobForm.length) {
@@ -74,6 +82,7 @@ export default () => {
isMarkdown,
});
initPopovers();
+ initCodeQualityWalkthroughStep();
})
.catch((e) => createFlash(e));