accompanying course comment: more tentative to delete the comment

This commit is contained in:
nobohan
2022-03-04 14:22:25 +01:00
parent f04118218d
commit 6472c554ed
3 changed files with 5 additions and 3 deletions

View File

@@ -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}));