From 2a00e26d257adb8a1ee86bd3931d490d2502eb0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Wed, 11 Dec 2024 11:08:16 +0100 Subject: [PATCH] pkp/pkp-lib#6528 Disable the delete action instead of hiding it when no incomplete submission is listed --- .../DropdownActions/DropdownActions.vue | 13 ++++++- .../components/DashboardBulkActions.vue | 3 +- .../composables/useDashboardBulkDelete.js | 35 +++++++++---------- src/pages/dashboard/dashboardPageStore.js | 4 +-- 4 files changed, 32 insertions(+), 23 deletions(-) diff --git a/src/components/DropdownActions/DropdownActions.vue b/src/components/DropdownActions/DropdownActions.vue index 923fccb0a..f25566f33 100644 --- a/src/components/DropdownActions/DropdownActions.vue +++ b/src/components/DropdownActions/DropdownActions.vue @@ -46,6 +46,7 @@ v-for="(action, i) in actions" :key="i" v-slot="{active, close}" + :disabled="action.disabled || false" >
` component. */ + /** + * An array of action objects. + * Each object should contain + * `label` (string), + * `url` (string) to navigate to if the action involves a link, or + * `name` (string) to perform the action when clicked, an optional + * `icon` (string) and + * `isWarnable` (boolean) if the button needs the "warning" button styling from `