From 8b611711feb295f23e032eb04832664db587d582 Mon Sep 17 00:00:00 2001 From: sebdet Date: Fri, 19 Feb 2021 14:40:00 +0100 Subject: Rearrange the UI menu Rearrange the UI menu to improve the usability Issue-ID: POLICY-2925 Signed-off-by: sebdet Change-Id: Icb56655b8b9300fa78d004a8fe88d64e54f42279 Signed-off-by: sebdet (cherry picked from commit 6e4225c1c684b6dacfd465485d989dd846defa99) --- ui-react/src/components/menu/MenuBar.js | 24 +++++++------ .../menu/__snapshots__/MenuBar.test.js.snap | 42 ++++++++++++---------- 2 files changed, 37 insertions(+), 29 deletions(-) (limited to 'ui-react') diff --git a/ui-react/src/components/menu/MenuBar.js b/ui-react/src/components/menu/MenuBar.js index 40a3890a5..ae1387912 100644 --- a/ui-react/src/components/menu/MenuBar.js +++ b/ui-react/src/components/menu/MenuBar.js @@ -86,16 +86,18 @@ export default class MenuBar extends React.Component { render () { return ( - - View All Templates - - - Upload Tosca Model - View Tosca Models + Manage Metadata Dictionaries + View All Policies + View Tosca Models + + Upload Tosca Model + + + View All Templates - + Create Open Close @@ -104,10 +106,10 @@ export default class MenuBar extends React.Component { Properties Refresh Status - - Create and deploy to Policy Engine(SUBMIT) - Undeploy from Policy Engine (STOP) - ReDeploy to Policy Engine (RESTART) + + Create and deploy to Policy Framework (SUBMIT) + Undeploy from Policy Framework (STOP) + ReDeploy to Policy Framework (RESTART) Delete loop instance (DELETE) Deploy to DCAE (DEPLOY) diff --git a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap index 69a0e85db..fd9956ed2 100644 --- a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap +++ b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap @@ -3,7 +3,7 @@ exports[`Verify MenuBar Test the render method 1`] = ` - View All Templates + Manage Metadata Dictionaries - - + - Upload Tosca Model + View All Policies View Tosca Models + - Manage Metadata Dictionaries + Upload Tosca Model + + - View All Policies + View All Templates - Create and deploy to Policy Engine(SUBMIT) + Create and deploy to Policy Framework (SUBMIT) - Undeploy from Policy Engine (STOP) + Undeploy from Policy Framework (STOP) - ReDeploy to Policy Engine (RESTART) + ReDeploy to Policy Framework (RESTART)