From 70156e6720d25945b9c98e4523a68d8d25fb11f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Mon, 6 Jan 2025 12:05:36 +0100 Subject: [PATCH] pkp/pkp-lib#10760 Refine GalleyManager --- src/composables/useCurrentUser.js | 5 -- .../FileManager/useFileManagerConfig.js | 2 +- .../GalleyManagerCellActions.vue | 9 ++- .../GalleyManager/TableRowSortControls.vue | 4 +- .../GalleyManager/galleyManagerStore.js | 9 ++- .../GalleyManager/useGalleyManagerActions.js | 79 +++++++++---------- .../useGalleyManagerConfiguration.js | 60 +++++++++++++- .../workflowConfigAuthorOJS.js | 1 - .../workflowConfigEditorialOJS.js | 1 - 9 files changed, 111 insertions(+), 59 deletions(-) diff --git a/src/composables/useCurrentUser.js b/src/composables/useCurrentUser.js index 8b6549275..b4899663d 100644 --- a/src/composables/useCurrentUser.js +++ b/src/composables/useCurrentUser.js @@ -31,11 +31,6 @@ export function useCurrentUser() { } }); - console.log('hasCurrentUserAtLeastOneAssignedRoleInStage'); - console.log( - assignedRoleIds, - roles.some((role) => assignedRoleIds.includes(role)), - ); return roles.some((role) => assignedRoleIds.includes(role)); } diff --git a/src/managers/FileManager/useFileManagerConfig.js b/src/managers/FileManager/useFileManagerConfig.js index d7db40f8c..daed95021 100644 --- a/src/managers/FileManager/useFileManagerConfig.js +++ b/src/managers/FileManager/useFileManagerConfig.js @@ -11,7 +11,7 @@ export const FileManagerConfigurations = { { roles: [pkp.const.ROLE_ID_AUTHOR], actions: [ - Actions.FILE_FILE_LIST, + Actions.FILE_LIST, Actions.FILE_EDIT, Actions.FILE_DOWNLOAD_ALL, ], diff --git a/src/managers/GalleyManager/GalleyManagerCellActions.vue b/src/managers/GalleyManager/GalleyManagerCellActions.vue index 8603ca83d..39eca02bb 100644 --- a/src/managers/GalleyManager/GalleyManagerCellActions.vue +++ b/src/managers/GalleyManager/GalleyManagerCellActions.vue @@ -1,12 +1,15 @@