]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/page-comment.ts
Comments: Moved to tab UI, Converted tabs component to ts
[bookstack] / resources / js / components / page-comment.ts
index 82cb95f13de027f6b869f50581e2bd7e7a7a4707..12485b807287d20c5a38b6cd0625f893749b9107 100644 (file)
@@ -140,8 +140,8 @@ export class PageComment extends Component {
         const action = isArchived ? 'unarchive' : 'archive';
 
         const response = await window.$http.put(`/comment/${this.commentId}/${action}`);
-        this.$emit(action, {new_thread_dom: htmlToDom(response.data as string)});
         window.$events.success(this.archiveText);
+        this.$emit(action, {new_thread_dom: htmlToDom(response.data as string)});
         this.container.closest('.comment-branch')?.remove();
     }