diff --git a/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js b/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js index d2e180c..332dcc7 100644 --- a/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js +++ b/src/Crisp.Ui/ClientApp/src/components/AddThreatModel.js @@ -227,22 +227,29 @@ const AddThreatModel = () => { ))} - -
-
Resources
-
- - {resourceNames.isLoading ? ( -
- - Loading... - -
- ) : resourceNames.data.resources.map(r => ( - - ))} -
-
+ {selectedRecommendationsCount > 0 ? ( + + setAddResourcesRecommendations(!addResourcesRecommendations)} /> Add resources recommendations to threats (preview) + + ) : null} + {addResourcesRecommendations ? ( + +
+
Resources
+
+ + {resourceNames.isLoading ? ( +
+ + Loading... + +
+ ) : resourceNames.data.resources.map(r => ( + + ))} +
+
+ ) : null}
Data flow diagram
onDiagramChange('flow', e)} /> @@ -351,11 +358,6 @@ const AddThreatModel = () => { )}
- {selectedRecommendationsCount > 0 ? ( - - setAddResourcesRecommendations(!addResourcesRecommendations)} /> Add resources recommendations to threats - - ): null} {createThreatModelMutation.isLoading &&