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:
authorSam Bigelow <sbigelow@gitlab.com>2019-04-26 17:14:29 +0300
committerSam Bigelow <sbigelow@gitlab.com>2019-04-26 21:03:34 +0300
commitba8113c3238d04ed753c49303b81a4b8e5ec3f23 (patch)
tree92e5245adc8fb4ee506be655798401d37d8149ef /app/assets/javascripts/vue_shared/components/notes
parent674e5e5baab6542eb35446fa46d45ce428c9ea1a (diff)
Init MR Popovers on system note mounted
All `renderGFM()` calls are finished before the system note is mounted so this MR inits the popover for each system note, and only the elements in the system note
Diffstat (limited to 'app/assets/javascripts/vue_shared/components/notes')
-rw-r--r--app/assets/javascripts/vue_shared/components/notes/system_note.vue4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/vue_shared/components/notes/system_note.vue b/app/assets/javascripts/vue_shared/components/notes/system_note.vue
index acc179b3834..3c86b7e4c61 100644
--- a/app/assets/javascripts/vue_shared/components/notes/system_note.vue
+++ b/app/assets/javascripts/vue_shared/components/notes/system_note.vue
@@ -22,6 +22,7 @@ import noteHeader from '~/notes/components/note_header.vue';
import Icon from '~/vue_shared/components/icon.vue';
import TimelineEntryItem from './timeline_entry_item.vue';
import { spriteIcon } from '../../../lib/utils/common_utils';
+import initMRPopovers from '~/mr_popover/';
const MAX_VISIBLE_COMMIT_LIST_COUNT = 3;
@@ -71,6 +72,9 @@ export default {
);
},
},
+ mounted() {
+ initMRPopovers(this.$el.querySelectorAll('.gfm-merge_request'));
+ },
};
</script>