Skip to content
Snippets Groups Projects

fetch again api after posting comment

Merged Timothee P requested to merge evol/redmine-ticket-11820-update-comment-after-post into develop
1 file
+ 19
16
Compare changes
  • Side-by-side
  • Inline
@@ -425,12 +425,19 @@ export default {
})
.then((response) => {
if (response && this.comment_form.attachment_file.file) {
featureAPI.postCommentAttachment({
featureId: this.$route.params.slug_signal,
file: this.comment_form.attachment_file.file,
fileName: this.comment_form.title.file,
comment: response.data.id,
});
featureAPI
.postCommentAttachment({
featureId: this.$route.params.slug_signal,
file: this.comment_form.attachment_file.file,
fileName: this.comment_form.title.file,
comment: response.data.id,
})
.then(() => {
this.getFeatureEvents();
this.getFeatureAttachments();
});
} else {
this.getFeatureEvents();
}
});
},
@@ -456,16 +463,12 @@ export default {
},
deleteFeature() {
this.$store.dispatch(
"feature/DELETE_FEATURE",
this.feature.feature_id
)
.then(() => {
this.$store.dispatch(
"feature/GET_PROJECT_FEATURES"
)
this.goBackToProject();
});
this.$store
.dispatch("feature/DELETE_FEATURE", this.feature.feature_id)
.then(() => {
this.$store.dispatch("feature/GET_PROJECT_FEATURES");
this.goBackToProject();
});
},
initMap() {
Loading