Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkp/pkp-lib#10263 Relax editing metadata on published/posted materials #398

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions src/components/Container/WorkflowPage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,12 +220,6 @@ const WorkflowPageWithDataAndTemplate = {
</PkpButton>
</template>
</PkpHeader>
<div
v-if="workingPublication.status === getConstant('STATUS_PUBLISHED')"
class="pkpPublication__versionPublished"
>
This version has been published and can not be edited.
</div>
<tabs
class="pkpPublication__tabs"
:is-side-tabs="true"
Expand Down
8 changes: 3 additions & 5 deletions src/components/Container/WorkflowPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -487,11 +487,9 @@ export default {
return field;
});

// Add/remove save button depending on publication status or user permissions
form.canSubmit =
this.canEditPublication &&
publication.status !== pkp.const.STATUS_PUBLISHED;

// Add/remove save button depending on user permissions
form.canSubmit = this.canEditPublication;

// Pass the publication status to the issue selection field
if (formId === pkp.const.FORM_ISSUE_ENTRY) {
form.fields = form.fields.map((field) => {
Expand Down