diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-07-07 02:05:13 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-07-21 22:35:25 +0300 |
commit | b72db79668ff5ede3124933a989a547cf17c4dee (patch) | |
tree | 76e97240073ef6078008babdffc8711c56212efc /app | |
parent | afece66004420bdb18edf0891fa9c6dfa86ce87c (diff) |
IssueNotesRefactor: Use map getters for notes.
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/notes/components/issue_notes.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes/components/issue_notes.vue b/app/assets/javascripts/notes/components/issue_notes.vue index 37bdc9ed8d6..d22253d231d 100644 --- a/app/assets/javascripts/notes/components/issue_notes.vue +++ b/app/assets/javascripts/notes/components/issue_notes.vue @@ -3,6 +3,7 @@ import Vue from 'vue'; import Vuex from 'vuex'; +import { mapGetters } from 'vuex'; import storeOptions from '../stores/issue_notes_store'; import IssueNote from './issue_note.vue'; import IssueDiscussion from './issue_discussion.vue'; @@ -26,6 +27,11 @@ export default { IssueSystemNote, IssueCommentForm, }, + computed: { + ...mapGetters([ + 'notes', + ]) + }, methods: { component(note) { if (note.individual_note) { @@ -82,7 +88,7 @@ export default { id="notes-list" class="notes main-notes-list timeline"> <component - v-for="note in $store.getters.notes" + v-for="note in notes" :is="component(note)" :note="componentData(note)" :key="note.id" /> |