Skip to content

Commit

Permalink
Fixed confirmation when deleting a link
Browse files Browse the repository at this point in the history
  • Loading branch information
evirunurm committed Aug 27, 2023
1 parent 3daabbf commit 5071c1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/link_editor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
},
}
}
Expand Down

0 comments on commit 5071c1e

Please sign in to comment.