Skip to content

Commit f296985

Browse files
committed
pkp/pkp-lib#10263 removed unused list, reverted accidental change, and fixed canEdit.
1 parent 43451ed commit f296985

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/managers/GalleyManager/useGalleyManagerConfig.js

-6
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,6 @@ export const GalleyManagerConfiguration = {
3434
Actions.GALLEY_EDIT,
3535
Actions.GALLEY_SORT,
3636
],
37-
actionsRequiresUnpublishedState: [
38-
Actions.GALLEY_ADD,
39-
Actions.GALLEY_CHANGE_FILE,
40-
Actions.GALLEY_DELETE,
41-
Actions.GALLEY_SORT,
42-
],
4337
};
4438

4539
export function useGalleyManagerConfig() {

src/pages/workflow/WorkflowPageOJS.vue

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import WorkflowChangeSubmissionLanguage from './components/publication/WorkflowC
2828
import WorkflowPrimaryBasicMetadata from './components/primary/WorkflowPrimaryBasicMetadata.vue';
2929
import WorkflowSubmissionStatus from './components/primary/WorkflowSubmissionStatus.vue';
3030
import WorkflowPublicationEditWarning from './components/publication/WorkflowPublicationEditWarning.vue';
31+
import WorkflowPublicationEditDisabled from './components/publication/WorkflowPublicationEditDisabled.vue';
3132
3233
import {useWorkflowConfigOJS as useWorkflowConfig} from './composables/useWorkflowConfig/useWorkflowConfigOJS';
3334
import {useWorkflowNavigationConfigOJS as useWorkflowNavigationConfig} from './composables/useWorkflowNavigationConfig/useWorkflowNavigationConfigOJS';
@@ -58,6 +59,7 @@ const Components = markRaw({
5859
WorkflowChangeSubmissionLanguage,
5960
WorkflowSubmissionStatus,
6061
WorkflowPublicationEditWarning,
62+
WorkflowPublicationEditDisabled,
6163
});
6264
6365
const store = useWorkflowStore({
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
<!-- file: WorkflowPublicationEditDisbabled.vue -->
12
<template>
23
<div
34
class="bg -mx-5 -mt-5 bg-attention p-5 text-center text-base-normal text-on-dark"
45
>
5-
{{ t('publication.editorEditWarning') }}
6+
{{ t('publication.editDisabled') }}
67
</div>
78
</template>
89

910
<script setup>
1011
import {useLocalize} from '@/composables/useLocalize';
11-
1212
const {t} = useLocalize();
1313
</script>

src/pages/workflow/composables/useWorkflowConfig/workflowConfigEditorialOJS.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ export const PublicationConfig = {
930930
formName: 'identifier',
931931
submission,
932932
publication: selectedPublication,
933-
canEdit: 'true',
933+
canEdit: permissions.canEditPublication,
934934
},
935935
},
936936
];

0 commit comments

Comments
 (0)