summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-10-17 08:30:36 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-10-17 08:30:36 +0200
commit8d1112146beff49d19eb025f4fa7c36353aa7872 (patch)
tree791ab2465ae86be4c2d38aa93ff951cbf15abfba /components
parent16357c0e48bf1006d1fd81f944aa0ac5ddd1e70d (diff)
Avoid duplicate `delete` check
If a delete handler is defined, skip check twice if it is valid
Diffstat (limited to 'components')
-rw-r--r--components/VTable.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/VTable.vue b/components/VTable.vue
index 5fb2ad2..225c3f9 100644
--- a/components/VTable.vue
+++ b/components/VTable.vue
@@ -64,7 +64,7 @@
import UserAvatar from "@/components/UserAvatar.vue";
export default {
- props: ["keys", "fields", "path", "deleterow", "delete"],
+ props: ["keys", "fields", "path", "deleterow"],
components: {
"user-avatar": UserAvatar,
},
@@ -76,7 +76,7 @@ export default {
return typeof variable == "boolean";
},
handleDelete(id) {
- this.delete(id);
+ this.deleterow(id);
},
deleteAvatar(id) {
this.$store.dispatch("users/deleteAvatar", id).then((response) => {