Skip to content

Commit

Permalink
pkp/pkp-lib#10663 Use confirmation modal indicator instead of full sc…
Browse files Browse the repository at this point in the history
…reen indicator
  • Loading branch information
jardakotesovec committed Jan 4, 2025
1 parent 72c3280 commit 420ea58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/workflow/composables/useWorkflowActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -285,12 +283,13 @@ export function useWorkflowActions({
createNewVersionUrl,
{
method: 'POST',
showFullScreenSpinner: true,
},
);
await fetch();
// select newest publication
store.selectPublicationId(newPublication.value.id);
close();

finishedCallback();
},
},
Expand Down

0 comments on commit 420ea58

Please sign in to comment.