summaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src
diff options
context:
space:
mode:
authorYarin Dekel <yarind@amdocs.com>2018-12-04 15:34:20 +0200
committerEinav Keidar <einavw@amdocs.com>2018-12-05 08:48:13 +0000
commit016ae9fea4e54f82e04427851f483729263e42cd (patch)
tree5bb2e10a67cd8bdab4b3398350be711d1711084e /workflow-designer-ui/src
parentc4c5f89072f95a09b16dbcc1e89ff004c47876c0 (diff)
WF- disable add new when ARCHIVED
Issue-ID: SDC-1972 Change-Id: I3c73d587b3b891a09b0858cf9df00467c111d7ff Signed-off-by: Yarin Dekel <yarind@amdocs.com>
Diffstat (limited to 'workflow-designer-ui/src')
-rw-r--r--workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
index 0f3d9702..3eed4ed1 100644
--- a/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
+++ b/workflow-designer-ui/src/main/frontend/src/features/catalog/CatalogView.jsx
@@ -19,6 +19,7 @@ import PropTypes from 'prop-types';
import InfiniteScroll from 'shared/scroll/InfiniteScroll';
import Workflows from 'features/catalog/views/Workflows';
import AddWorkflow from 'features/catalog/views/AddWorkflow';
+import { WORKFLOW_STATUS } from 'features/workflow/workflowConstants';
import Header from 'features/catalog/views/Header';
import Main from 'features/catalog/views/Main';
@@ -134,7 +135,9 @@ class CatalogView extends Component {
this.handleAlphabeticalOrderByClick
}>
<div className="main__content">
- <AddWorkflow onClick={showNewWorkflowModal} />
+ {status === WORKFLOW_STATUS.ACTIVE && (
+ <AddWorkflow onClick={showNewWorkflowModal} />
+ )}
<Workflows
items={items}
onWorkflowClick={this.goToOverviewPage}