Skip to content

Commit

Permalink
pkp/pkp-lib#10599 Refining which editorial decisions are displayed an…
Browse files Browse the repository at this point in the history
…d when.
  • Loading branch information
jardakotesovec committed Nov 13, 2024
1 parent 3d60840 commit ab62074
Showing 1 changed file with 4 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,8 @@ export const WorkflowConfig = {
getActionItems: ({submission, selectedStageId, selectedReviewRound}) => {
let items = [];

const decisionItems = [];

addItemIf(
decisionItems,
items,
{
component: 'WorkflowActionButton',
props: {
Expand All @@ -149,7 +147,7 @@ export const WorkflowConfig = {
);

addItemIf(
decisionItems,
items,
{
component: 'WorkflowActionButton',
props: {
Expand All @@ -165,7 +163,7 @@ export const WorkflowConfig = {
);

addItemIf(
decisionItems,
items,
{
component: 'WorkflowActionButton',
props: {
Expand All @@ -178,7 +176,7 @@ export const WorkflowConfig = {
);

addItemIf(
decisionItems,
items,
{
component: 'WorkflowActionButton',
props: {
Expand All @@ -193,18 +191,6 @@ export const WorkflowConfig = {
),
);

addItemIf(
items,
{
component: 'WorkflowActionChangeDecision',
props: {
showChangeDecision: submission.status === pkp.const.STATUS_DECLINED,
items: decisionItems,
},
},
!!decisionItems.length,
);

return items;
},
},
Expand Down

0 comments on commit ab62074

Please sign in to comment.