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:
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue')
-rw-r--r--app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue17
1 files changed, 4 insertions, 13 deletions
diff --git a/app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue b/app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
index 3aaa7d915ea..0117c06c3d5 100644
--- a/app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
+++ b/app/assets/javascripts/vue_shared/components/blob_viewers/simple_viewer.vue
@@ -1,7 +1,5 @@
<script>
import { GlIcon, GlSafeHtmlDirective } from '@gitlab/ui';
-import glFeatureFlagsMixin from '~/vue_shared/mixins/gl_feature_flags_mixin';
-import LineHighlighter from '~/blob/line_highlighter';
import { HIGHLIGHT_CLASS_NAME } from './constants';
import ViewerMixin from './mixins';
@@ -13,7 +11,7 @@ export default {
directives: {
SafeHtml: GlSafeHtmlDirective,
},
- mixins: [ViewerMixin, glFeatureFlagsMixin()],
+ mixins: [ViewerMixin],
inject: ['blobHash'],
data() {
return {
@@ -21,21 +19,14 @@ export default {
};
},
computed: {
- refactorBlobViewerEnabled() {
- return this.glFeatures.refactorBlobViewer;
- },
-
lineNumbers() {
return this.content.split('\n').length;
},
},
mounted() {
- if (this.refactorBlobViewerEnabled) {
- // This line will be removed once we start using highlight.js on the frontend (https://gitlab.com/groups/gitlab-org/-/epics/7146)
- new LineHighlighter(); // eslint-disable-line no-new
- } else {
- const { hash } = window.location;
- if (hash) this.scrollToLine(hash, true);
+ const { hash } = window.location;
+ if (hash) {
+ this.scrollToLine(hash, true);
}
},
methods: {