-
Notifications
You must be signed in to change notification settings - Fork 54
pkp/pkp-lib#9295 continuous publication implementation update #683
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
Changes from all commits
36939c7
f465e5b
5224879
5c21031
b5187ad
c17b85b
9d2bded
f726a84
9c06818
271cca6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| <!-- TODO: need this anymore ? remove this after testing --> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any thoughts on this? I don't see FieldSelectIssue used anywhere.. so I am supportive to remove it.. and just make sure that the tests are passing. |
||
| <template> | ||
| <div class="pkpFormField pkpFormField--select pkpFormField--selectIssue"> | ||
| <div class="pkpFormField__heading"> | ||
|
|
@@ -75,7 +76,7 @@ export default { | |
| type: String, | ||
| required: true, | ||
| }, | ||
| /** One of the `PKPSubmission::STATUS_` constants. When set to `PKPSubmission::STATUS_QUEUED` or `PKPSubmission::STATUS_PUBLISHED` the issue selection will be hidden. */ | ||
| /** One of the `PKPPublication::STATUS_` constants. When set to `PKPPublication::STATUS_QUEUED` or `PKPPublication::STATUS_PUBLISHED` the issue selection will be hidden. */ | ||
| publicationStatus: { | ||
| type: Number, | ||
| required: true, | ||
|
|
@@ -112,7 +113,7 @@ export default { | |
| */ | ||
| button() { | ||
| let button = null; | ||
| if (this.publicationStatus !== pkp.const.STATUS_PUBLISHED) { | ||
| if (this.publicationStatus !== pkp.const.publication.STATUS_PUBLISHED) { | ||
| button = { | ||
| label: this.value ? this.changeIssueLabel : this.assignLabel, | ||
| }; | ||
|
|
@@ -128,9 +129,11 @@ export default { | |
| */ | ||
| notice() { | ||
| let notice = ''; | ||
| if (this.publicationStatus === pkp.const.STATUS_PUBLISHED) { | ||
| if (this.publicationStatus === pkp.const.publication.STATUS_PUBLISHED) { | ||
| notice = this.publishedNoticeBase; | ||
| } else if (this.publicationStatus === pkp.const.STATUS_SCHEDULED) { | ||
| } else if ( | ||
| this.publicationStatus === pkp.const.publication.STATUS_SCHEDULED | ||
| ) { | ||
| notice = this.scheduledNoticeBase; | ||
| } else if (this.value) { | ||
| notice = this.assignedNoticeBase; | ||
|
|
@@ -167,7 +170,7 @@ export default { | |
| const workflowStore = useWorkflowStore(); | ||
|
|
||
| workflowStore.workflowAssignToIssue({}, (finishedData) => { | ||
| if (finishedData.data) { | ||
| if (finishedData?.data) { | ||
| this.currentValue = finishedData.data.issueId; | ||
| } | ||
| }); | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.