From 5071c1e0293562517a4367c4a6f4ad45a9cc3201 Mon Sep 17 00:00:00 2001 From: Evelin Date: Sun, 27 Aug 2023 17:09:41 +0200 Subject: [PATCH] Fixed confirmation when deleting a link --- src/components/link_editor.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/link_editor.vue b/src/components/link_editor.vue index 6bf3bfd..248592f 100644 --- a/src/components/link_editor.vue +++ b/src/components/link_editor.vue @@ -45,8 +45,10 @@ export default { }, methods: { deleteLink() { - let confirmedDeletion = confirm("You sure you want to delete this?"); - this.$emit("deleteLink", this.link); + let confirmed = confirm("You sure you want to delete this?"); + if (confirmed) { + this.$emit("deleteLink", this.link); + } }, } }