aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/menu
diff options
context:
space:
mode:
Diffstat (limited to 'ui-react/src/components/menu')
-rw-r--r--ui-react/src/components/menu/MenuBar.js3
-rw-r--r--ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap99
2 files changed, 80 insertions, 22 deletions
diff --git a/ui-react/src/components/menu/MenuBar.js b/ui-react/src/components/menu/MenuBar.js
index b68e2376a..2ce92b39d 100644
--- a/ui-react/src/components/menu/MenuBar.js
+++ b/ui-react/src/components/menu/MenuBar.js
@@ -87,6 +87,9 @@ export default class MenuBar extends React.Component {
return (
<Navbar.Collapse>
+ <StyledNavDropdown title="Template">
+ <NavDropdown.Item as={StyledLink} to="/viewToscaModals">View Tosca Model</NavDropdown.Item>
+ </StyledNavDropdown>
<StyledNavDropdown title="Closed Loop">
<NavDropdown.Item as={StyledLink} to="/openLoop">Open CL</NavDropdown.Item>
<NavDropdown.Item as={StyledLink} to="/loopProperties" disabled={this.state.disabled}>Properties CL</NavDropdown.Item>
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 3ee733463..1e13b3bdc 100644
--- a/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
+++ b/ui-react/src/components/menu/__snapshots__/MenuBar.test.js.snap
@@ -3,6 +3,61 @@
exports[`Verify MenuBar Test the render method 1`] = `
<NavbarCollapse>
<Styled(NavDropdown)
+ title="Template"
+ >
+ <DropdownItem
+ as={
+ Object {
+ "$$typeof": Symbol(react.forward_ref),
+ "attrs": Array [],
+ "componentStyle": ComponentStyle {
+ "componentId": "sc-jKJlTe",
+ "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],
+ ";
+ }
+",
+ ],
+ },
+ "displayName": "Styled(Link)",
+ "foldedComponentIds": Array [],
+ "render": [Function],
+ "styledComponentId": "sc-jKJlTe",
+ "target": [Function],
+ "toString": [Function],
+ "warnTooManyClasses": [Function],
+ "withComponent": [Function],
+ }
+ }
+ disabled={false}
+ to="/viewToscaModals"
+ >
+ View Tosca Model
+ </DropdownItem>
+ </Styled(NavDropdown)>
+ <Styled(NavDropdown)
title="Closed Loop"
>
<DropdownItem
@@ -11,7 +66,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -44,7 +99,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -62,7 +117,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -95,7 +150,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -113,7 +168,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -146,7 +201,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -168,7 +223,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -201,7 +256,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -219,7 +274,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -252,7 +307,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -270,7 +325,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -303,7 +358,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -321,7 +376,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -354,7 +409,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -372,7 +427,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -405,7 +460,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -423,7 +478,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -456,7 +511,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -478,7 +533,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -511,7 +566,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],
@@ -544,7 +599,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"$$typeof": Symbol(react.forward_ref),
"attrs": Array [],
"componentStyle": ComponentStyle {
- "componentId": "sc-kpOJdX",
+ "componentId": "sc-jKJlTe",
"isStatic": false,
"rules": Array [
"
@@ -577,7 +632,7 @@ exports[`Verify MenuBar Test the render method 1`] = `
"displayName": "Styled(Link)",
"foldedComponentIds": Array [],
"render": [Function],
- "styledComponentId": "sc-kpOJdX",
+ "styledComponentId": "sc-jKJlTe",
"target": [Function],
"toString": [Function],
"warnTooManyClasses": [Function],