diff --git a/mailpoet/assets/js/src/automation/editor/components/header/document_actions.tsx b/mailpoet/assets/js/src/automation/editor/components/header/document_actions.tsx index a833fedaf2..356f1e9e79 100644 --- a/mailpoet/assets/js/src/automation/editor/components/header/document_actions.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/header/document_actions.tsx @@ -38,11 +38,7 @@ export function DocumentActions({ children }): JSX.Element { let chipClass = 'mailpoet-automation-editor-chip-gray'; if (workflowStatus === WorkflowStatus.ACTIVE) { chipClass = 'mailpoet-automation-editor-chip-success'; - } else if ( - [WorkflowStatus.INACTIVE, WorkflowStatus.DEACTIVATING].includes( - workflowStatus, - ) - ) { + } else if (workflowStatus === WorkflowStatus.DEACTIVATING) { chipClass = 'mailpoet-automation-editor-chip-danger'; } @@ -79,8 +75,6 @@ export function DocumentActions({ children }): JSX.Element { > {workflowStatus === WorkflowStatus.ACTIVE && __('Active', 'mailpoet')} - {workflowStatus === WorkflowStatus.INACTIVE && - __('Inactive', 'mailpoet')} {workflowStatus === WorkflowStatus.DEACTIVATING && __('Deactivating', 'mailpoet')} {workflowStatus === WorkflowStatus.DRAFT && diff --git a/mailpoet/assets/js/src/automation/editor/components/header/index.tsx b/mailpoet/assets/js/src/automation/editor/components/header/index.tsx index 7308e1139b..c0b1fb7829 100644 --- a/mailpoet/assets/js/src/automation/editor/components/header/index.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/header/index.tsx @@ -276,12 +276,6 @@ export function Header({ /> )} - {workflowStatus === WorkflowStatus.INACTIVE && ( - - )} diff --git a/mailpoet/assets/js/src/automation/editor/components/modals/deactivate-modal.tsx b/mailpoet/assets/js/src/automation/editor/components/modals/deactivate-modal.tsx index 95a50b9c23..67e93ad2bc 100644 --- a/mailpoet/assets/js/src/automation/editor/components/modals/deactivate-modal.tsx +++ b/mailpoet/assets/js/src/automation/editor/components/modals/deactivate-modal.tsx @@ -56,7 +56,7 @@ export function DeactivateModal({ [], ); const [selected, setSelected] = useState< - WorkflowStatus.INACTIVE | WorkflowStatus.DEACTIVATING + WorkflowStatus.DRAFT | WorkflowStatus.DEACTIVATING >(WorkflowStatus.DEACTIVATING); const [isBusy, setIsBusy] = useState(false); // translators: %s is the name of the automation. @@ -107,7 +107,7 @@ export function DeactivateModal({