mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
accompanying course comment: more tentative to delete the comment
This commit is contained in:
@@ -107,7 +107,7 @@ export default {
|
||||
}
|
||||
},
|
||||
removeComment() {
|
||||
this.$store.dispatch('removePinnedComment', {})
|
||||
this.$store.dispatch('removePinnedComment', {id: this.pinnedComment.id})
|
||||
.catch(({name, violations}) => {
|
||||
if (name === 'ValidationException' || name === 'AccessException') {
|
||||
violations.forEach((violation) => this.$toast.open({message: violation}));
|
||||
|
Reference in New Issue
Block a user