summaryrefslogtreecommitdiff
path: root/pages/admin/models.vue
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 /pages/admin/models.vue
parent16357c0e48bf1006d1fd81f944aa0ac5ddd1e70d (diff)
Avoid duplicate `delete` check
If a delete handler is defined, skip check twice if it is valid
Diffstat (limited to 'pages/admin/models.vue')
-rw-r--r--pages/admin/models.vue3
1 files changed, 1 insertions, 2 deletions
diff --git a/pages/admin/models.vue b/pages/admin/models.vue
index ca84932..148e206 100644
--- a/pages/admin/models.vue
+++ b/pages/admin/models.vue
@@ -42,8 +42,7 @@
:keys="['id', 'name', 'created', 'author', 'likes']"
:fields="models"
path="/models/"
- :deleterow="true"
- :delete="openModal"
+ :deleterow="openModal"
)
pagination(:page="page" :pages="pages" v-if="count" path="/admin/models")
</template>