diff --git a/frontend/src/component/strategies/list-component.jsx b/frontend/src/component/strategies/list-component.jsx index 3b9d417181..8cd20d985e 100644 --- a/frontend/src/component/strategies/list-component.jsx +++ b/frontend/src/component/strategies/list-component.jsx @@ -33,7 +33,11 @@ class StrategiesListComponent extends Component { {strategy.name} - removeStrategy(strategy)} /> + { + strategy.editable === false ? + '' : + removeStrategy(strategy)} /> + } )) : No entries} diff --git a/frontend/src/component/strategies/strategy-details-component.jsx b/frontend/src/component/strategies/strategy-details-component.jsx index 6a879e5b7b..007776aa7c 100644 --- a/frontend/src/component/strategies/strategy-details-component.jsx +++ b/frontend/src/component/strategies/strategy-details-component.jsx @@ -60,21 +60,24 @@ export default class StrategyDetails extends Component { const tabContent = this.getTabContent(activeTabId); - return ( - - - - - this.goToTab('view')}>Details - this.goToTab('edit')}>Edit - -
-
- {tabContent} -
-
-
-
- ); + return ( + + + {strategy.editable === false ? '' : + this.goToTab('view')}> + Details + + this.goToTab('edit')}> + Edit + + } + +
+
+ {tabContent} +
+
+
+
); } }