Skip to content
Snippets Groups Projects

REDMINE_ISSUE-16768| Suppression d'un signalemement depuis le détail d'un signalement

Merged REDMINE_ISSUE-16768| Suppression d'un signalemement depuis le détail d'un signalement
Merged Timothee P requested to merge redmine-issues/16768 into develop
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
@@ -427,10 +427,14 @@ export default {
},
deleteFeature() {
this.isDeleting = false;
this.DISPLAY_LOADER('Suppression du signalement en cours...');
this.$store
.dispatch('feature/DELETE_FEATURE', { feature_id: this.currentFeature.feature_id })
.then(async (response) => {
this.DISCARD_LOADER();
if (response.status === 204) {
this.$store.commit('DISPLAY_MESSAGE', { comment: 'Le signalement a bien été supprimé', level: 'positive' });
try {
await this.GET_PROJECT_FEATURES({
project_slug: this.$route.params.slug
@@ -439,6 +443,8 @@ export default {
console.error(err);
}
this.goBackToProject();
} else {
this.$store.commit('DISPLAY_MESSAGE', { comment: 'Une erreur est survenue pendant la suppression du signalement', level: 'negative' });
}
});
},
Loading