-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* pkp/pkp-lib#6528 Bulk delete - Adjust permissions and the UI for improved accessibility * pkp/pkp-lib#6528 Hide disabled checkbox for non sr users * pkp/pkp-lib#6528 Improve accessibility to not announce the button icon * pkp/pkp-lib#6528 Disable the delete action instead of hiding it when no incomplete submission is listed * pkp/pkp-lib#6528 rename locale keys
- Loading branch information
1 parent
67a3095
commit d43997a
Showing
11 changed files
with
140 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<template> | ||
<DropdownActions | ||
v-if="actions.length" | ||
:label="t('common.moreActions')" | ||
:display-as-ellipsis="true" | ||
:actions="actions" | ||
direction="right" | ||
@action="handleAction" | ||
/> | ||
</template> | ||
<script setup> | ||
import {computed} from 'vue'; | ||
import DropdownActions from '@/components/DropdownActions/DropdownActions.vue'; | ||
import {useLocalize} from '@/composables/useLocalize'; | ||
const {t} = useLocalize(); | ||
const actions = computed(() => { | ||
const _actions = []; | ||
if (dashboardStore.bulkDeleteIsAvailableForUser) { | ||
_actions.push({ | ||
label: t('dashboard.submissions.incomplete.bulkDelete.button'), | ||
name: 'bulkDeleteSelectionEnable', | ||
isWarnable: true, | ||
icon: 'Cancel', | ||
disabled: dashboardStore.bulkDeleteSubmissionIdsCanBeDeleted.length === 0, | ||
}); | ||
} | ||
return _actions; | ||
}); | ||
import {useDashboardPageStore} from '../dashboardPageStore'; | ||
const dashboardStore = useDashboardPageStore(); | ||
function handleAction(actionName, actionArgs = {}) { | ||
dashboardStore[actionName](actionArgs); | ||
} | ||
</script> |
18 changes: 5 additions & 13 deletions
18
src/pages/dashboard/components/DashboardBulkDeleteButton.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters