diff --git a/app/assets/javascripts/notes/components/issue_note.vue b/app/assets/javascripts/notes/components/issue_note.vue
index 3dc28d60ddd392bdebca31e307c2f2ed8cbd699f..9ec31589b24784a95dbdc1bbd707548bcf7a0736 100644
--- a/app/assets/javascripts/notes/components/issue_note.vue
+++ b/app/assets/javascripts/notes/components/issue_note.vue
@@ -39,15 +39,20 @@ export default {
this.isEditing = true;
},
deleteHandler() {
- this.isDeleting = true;
- this.$store
- .dispatch('deleteNote', this.note)
- .then(() => {
- this.isDeleting = false;
- })
- .catch(() => {
- this.isDeleting = false;
- });
+ const msg = 'Are you sure you want to delete this list?';
+ const isConfirmed = confirm(msg); // eslint-disable-line
+
+ if (isConfirmed) {
+ this.isDeleting = true;
+ this.$store
+ .dispatch('deleteNote', this.note)
+ .then(() => {
+ this.isDeleting = false;
+ })
+ .catch(() => {
+ this.isDeleting = false;
+ });
+ }
},
formUpdateHandler() {
// console.log('update requested', data);
@@ -66,10 +71,10 @@ export default {
+ :linkHref="author.path"
+ :imgSrc="author.avatar_url"
+ :imgAlt="author.name"
+ :imgSize="40" />