summaryrefslogtreecommitdiffstats
path: root/gui-clamp/ui-react/src/components/menu
diff options
context:
space:
mode:
authorLiam Fallon <liam.fallon@est.tech>2021-06-23 07:34:09 +0000
committerGerrit Code Review <gerrit@onap.org>2021-06-23 07:34:09 +0000
commit368a50d75e7a4cd17294b90321b90ef59c08c0c1 (patch)
treea01178c30e8c50dfdb19b47814ddee6b9f8a302a /gui-clamp/ui-react/src/components/menu
parentb48db31bdc8d317f8aaaa6752c14e93e44db95cf (diff)
parent587fb7a8b712a60def1e931e4a2480687a64f231 (diff)
Merge "Added Tosca File Upload Functionality"
Diffstat (limited to 'gui-clamp/ui-react/src/components/menu')
-rw-r--r--gui-clamp/ui-react/src/components/menu/MenuBar.js1
-rw-r--r--gui-clamp/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap65
2 files changed, 66 insertions, 0 deletions
diff --git a/gui-clamp/ui-react/src/components/menu/MenuBar.js b/gui-clamp/ui-react/src/components/menu/MenuBar.js
index 75a56d7..978a87a 100644
--- a/gui-clamp/ui-react/src/components/menu/MenuBar.js
+++ b/gui-clamp/ui-react/src/components/menu/MenuBar.js
@@ -89,6 +89,7 @@ export default class MenuBar extends React.Component {
<Navbar.Collapse>
<StyledNavDropdown title="Tosca">
<NavDropdown.Item as={ StyledLink } to="/readToscaTemplate">View Tosca Template</NavDropdown.Item>
+ <NavDropdown.Item as={ StyledLink } to="/uploadToscaFile">Upload Tosca to Commissioning</NavDropdown.Item>
</StyledNavDropdown>
<StyledNavDropdown title="POLICY Framework">
<NavDropdown.Item as={ StyledLink } to="/viewAllPolicies">View All Policies</NavDropdown.Item>
diff --git a/gui-clamp/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap b/gui-clamp/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
index 01f692b..2fef6c7 100644
--- a/gui-clamp/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
+++ b/gui-clamp/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
@@ -70,6 +70,71 @@ exports[`Verify MenuBar Test the render method 1`] = `
>
View Tosca Template
</DropdownItem>
+ <DropdownItem
+ as={
+ Object {
+ "$$typeof": Symbol(react.forward_ref),
+ "attrs": Array [],
+ "componentStyle": e {
+ "baseHash": 1014106698,
+ "baseStyle": undefined,
+ "componentId": "sc-bdfBwQ",
+ "isStatic": false,
+ "rules": Array [
+ "
+ color: ",
+ [Function],
+ ";
+ background-color: ",
+ [Function],
+ ";
+ font-weight: normal;
+ display: block;
+ width: 100%;
+ padding: .25rem 1.5rem;
+ clear: both;
+ text-align: inherit;
+ white-space: nowrap;
+ border: 0;
+
+ :hover {
+ text-decoration: none;
+ background-color: ",
+ [Function],
+ ";
+ color: ",
+ [Function],
+ ";
+ }
+",
+ ],
+ "staticRulesId": "",
+ },
+ "foldedComponentIds": Array [],
+ "render": [Function],
+ "shouldForwardProp": undefined,
+ "styledComponentId": "sc-bdfBwQ",
+ "target": Object {
+ "$$typeof": Symbol(react.forward_ref),
+ "propTypes": Object {
+ "innerRef": [Function],
+ "onClick": [Function],
+ "replace": [Function],
+ "target": [Function],
+ "to": [Function],
+ },
+ "render": [Function],
+ },
+ "toString": [Function],
+ "warnTooManyClasses": [Function],
+ "withComponent": [Function],
+ }
+ }
+ disabled={false}
+ to="/uploadToscaFile"
+ >
+ Upload Tosca to Commissioning
+ </DropdownItem>
</Styled(NavDropdown)>
<Styled(NavDropdown)
title="POLICY Framework"