]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-comment.js
respective book and chapter structure added.
[bookstack] / resources / js / components / page-comment.js
index cac20c9fb2c6351ffaccf1cc6a31d486680b4c43..fd8ad1f2e47b0ac5a5c6494f7ffcc9c5b2df5d8e 100644 (file)
@@ -104,9 +104,9 @@ export class PageComment extends Component {
         this.showLoading();
 
         await window.$http.delete(`/comment/${this.commentId}`);
+        this.$emit('delete');
         this.container.closest('.comment-branch').remove();
         window.$events.success(this.deletedText);
-        this.$emit('delete');
     }
 
     showLoading() {