From e99a1b8f3557dcca7ac15f93e0c94fd31de4e21a Mon Sep 17 00:00:00 2001 From: Dhaverd Date: Sat, 16 Nov 2024 02:45:59 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=BC=D1=83=D1=82=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D1=82=D0=B2=D0=B5=D1=80=D0=B6=D0=B4=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/views/Wishlist/Wishlist.vue | 49 ++++++++++++++++++++++++--- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/resources/views/Wishlist/Wishlist.vue b/resources/views/Wishlist/Wishlist.vue index e9ddfa0..0d0bff2 100644 --- a/resources/views/Wishlist/Wishlist.vue +++ b/resources/views/Wishlist/Wishlist.vue @@ -15,6 +15,8 @@ export default { fetching: true, dialogCreate: ref(false), dialogEdit: ref(false), + dialogDelete: ref(false), + wishToDelete: ref(0), wishToEditId: ref(0), wishlistLink: '', snackbar: false @@ -43,6 +45,7 @@ export default { removeWish(id){ this.fetching = true; this.wishStore.remove(id, this.userStore.token).then(()=>{ + this.dialogDelete = false; this.wishStore.getUserWishes(this.userStore.user['id']).then((wishes)=>{ this.wishesList = wishes; this.fetching = false; @@ -53,6 +56,10 @@ export default { this.wishToEditId = id; this.dialogEdit = true; }, + deleteWish(id){ + this.wishToDelete = id; + this.dialogDelete = true; + }, getWishToEditId(){ return this.wishToEditId; }, @@ -68,9 +75,9 @@ export default {
- @@ -94,7 +101,7 @@ export default { {{ wish['price'] }} {{ wish['url'] }} - + @@ -106,6 +113,22 @@ export default { + + + + Удалить запись? + + + + + +
+ Да + Нет +
+
+
+
@@ -121,7 +144,7 @@ export default { {{ wish['name'] }} {{ wish['price'] }} - + @@ -133,6 +156,22 @@ export default { + + + + Удалить запись? + + + + + +
+ Да + Нет +
+
+
+