diff options
author | Phil Hughes <me@iamphill.com> | 2018-11-09 09:44:07 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-11-27 11:40:39 +0000 |
commit | adf8ad9eee20a2b4ea08054e36fede62ba110e57 (patch) | |
tree | ffdab5c766778eaf28a9a7cc1ddaea6928287516 /app/assets/javascripts/notes/components/noteable_note.vue | |
parent | 921d6b1a13b5ec59217ab714b4daa6800500d95f (diff) | |
download | gitlab-ce-adf8ad9eee20a2b4ea08054e36fede62ba110e57.tar.gz |
Improve discussion rendering performance
Improve the renderign of new and existing discussions
by reducing the number of watchers on each object & array.
Previously every discussion change would trigger an update for every
discussion component.
Also tidied up some components to get them closer to our docs.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/51506
Diffstat (limited to 'app/assets/javascripts/notes/components/noteable_note.vue')
-rw-r--r-- | app/assets/javascripts/notes/components/noteable_note.vue | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/noteable_note.vue b/app/assets/javascripts/notes/components/noteable_note.vue index c2e49f8b23f..fc37fe1c7af 100644 --- a/app/assets/javascripts/notes/components/noteable_note.vue +++ b/app/assets/javascripts/notes/components/noteable_note.vue @@ -177,7 +177,7 @@ export default { class="note timeline-entry note-wrapper" > <div class="timeline-entry-inner"> - <div class="timeline-icon"> + <div v-once class="timeline-icon"> <user-avatar-link :link-href="author.path" :img-src="author.avatar_url" @@ -190,6 +190,7 @@ export default { <div class="timeline-content"> <div class="note-header"> <note-header + v-once :author="author" :created-at="note.created_at" :note-id="note.id" |