From 420ea587803f42bf48bf09739a974be7fbd81b06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarda=20Kot=C4=9B=C5=A1ovec?= Date: Sat, 4 Jan 2025 10:57:58 +0100 Subject: [PATCH] pkp/pkp-lib#10663 Use confirmation modal indicator instead of full screen indicator --- src/pages/workflow/composables/useWorkflowActions.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pages/workflow/composables/useWorkflowActions.js b/src/pages/workflow/composables/useWorkflowActions.js index b18fdcdf..219f4dd2 100644 --- a/src/pages/workflow/composables/useWorkflowActions.js +++ b/src/pages/workflow/composables/useWorkflowActions.js @@ -274,8 +274,6 @@ export function useWorkflowActions({ label: t('common.yes'), isPrimary: true, callback: async (close) => { - close(); - const latestPublication = getLatestPublication(submission); const {apiUrl: createNewVersionUrl} = useUrl( @@ -285,12 +283,13 @@ export function useWorkflowActions({ createNewVersionUrl, { method: 'POST', - showFullScreenSpinner: true, }, ); await fetch(); // select newest publication store.selectPublicationId(newPublication.value.id); + close(); + finishedCallback(); }, },