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:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-05 12:54:46 +0300
committerTim Zallmann <tzallmann@gitlab.com>2017-10-05 12:54:46 +0300
commit8b16f1074ddb6ea6a5404d37409ab81002f28d52 (patch)
treeaca5904f189a8353fd56942b2c28a2bfbdab7923 /app/assets/javascripts/repo/components/repo_preview.vue
parent8d14a95638d7d6b52254b192b3e54296e22fddc3 (diff)
Refactored Highlighting mechanism
Diffstat (limited to 'app/assets/javascripts/repo/components/repo_preview.vue')
-rw-r--r--app/assets/javascripts/repo/components/repo_preview.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/javascripts/repo/components/repo_preview.vue b/app/assets/javascripts/repo/components/repo_preview.vue
index 2fe369a4693..514c7d9284c 100644
--- a/app/assets/javascripts/repo/components/repo_preview.vue
+++ b/app/assets/javascripts/repo/components/repo_preview.vue
@@ -28,6 +28,9 @@ export default {
this.highlightFile();
});
},
+ activeLine(e) {
+ this.lineHighlighter.highlightHash('#L' + Store.activeLine);
+ },
},
};
</script>