Skip to content

Commit

Permalink
Merge pull request #173 from Progress1/news_item_comments
Browse files Browse the repository at this point in the history
Fix saving comments in News Items (was not working)
  • Loading branch information
milankowww authored Oct 16, 2023
2 parents 3742371 + d40b28c commit 41b9bae
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/gui/src/components/assess/NewsItemAggregateDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
<v-tab-item value="tab-2" class="pa-5">
<vue-editor
ref="assessAggregateDetailComments"
v-model="editorData"
:editorOptions="editorOptionVue2"
/>
</v-tab-item>
Expand Down Expand Up @@ -157,7 +158,7 @@
this.news_item = news_item;
this.title = news_item.title;
this.description = news_item.description;
this.editorData = this.news_item.comments
this.editorData = news_item.comments
this.$root.$emit('first-dialog', 'push');
},
Expand Down
5 changes: 3 additions & 2 deletions src/gui/src/components/assess/NewsItemSingleDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
<v-tab-item value="tab-3" class="pa-5">
<vue-editor
ref="assessDetailComments"
v-model="editorData"
:editorOptions="editorOptionVue2"
/>
</v-tab-item>
Expand Down Expand Up @@ -232,14 +233,14 @@ export default {
this.news_item.news_items[0] = response.data;
this.title = news_item.title;
this.description = news_item.description;
this.editorData = this.news_item.comments
this.editorData = news_item.comments
});
} else {
this.visible = true
this.news_item = news_item;
this.title = news_item.title;
this.description = news_item.description;
this.editorData = this.news_item.comments
this.editorData = news_item.comments
}
this.$root.$emit('first-dialog', 'push');
Expand Down

0 comments on commit 41b9bae

Please sign in to comment.