delete reply working
This commit is contained in:
parent
231bb21a4f
commit
ffb8252808
4 changed files with 9 additions and 4 deletions
|
|
@ -112,9 +112,10 @@ async function read() {
|
|||
|
||||
async function deleteComment(event) {
|
||||
event.stopPropagation();
|
||||
console.log(comment);
|
||||
const newFile = await api.deleteComment(comment);
|
||||
dialog.updateFile(newFile);
|
||||
if (comment.parentId) {
|
||||
if (comment.type === "comment-reply") {
|
||||
emits("close:comment");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue