aboutsummaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/menu
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2019-07-09 11:52:20 +0200
committerxuegao <xg353y@intl.att.com>2019-07-10 11:58:56 +0200
commit7c7323d8ec54e65ac7a9a5e8c7cd8bdc755ea70a (patch)
tree7f77ec10c6f9bd3b13f6c94978477ee3323b9a41 /ui-react/src/components/menu
parentc8d6130e6355a6f8f460c114ed7bac0221eb0020 (diff)
Create login page and add wiki/contact item
Create the login page for Clamp Ui; Add wiki/contact page which chould be selected from the menu bar. Issue-ID: CLAMP-416, CLAMP-417 Change-Id: Idddafd9c59a1e4d2897e962c831060e55083025c Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/components/menu')
-rw-r--r--ui-react/src/components/menu/MenuBar.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/ui-react/src/components/menu/MenuBar.js b/ui-react/src/components/menu/MenuBar.js
index 3077bde65..348541968 100644
--- a/ui-react/src/components/menu/MenuBar.js
+++ b/ui-react/src/components/menu/MenuBar.js
@@ -36,6 +36,13 @@ const StyledNavDropdownItem = styled(NavDropdown.Item)`
export default class MenuBar extends React.Component {
+ openEmailConsole() {
+ console.log("contactUs");
+ var link = "mailto:onap-discuss@lists.onap.org?subject=CLAMP&body=Please "
+ + "send us suggestions or feature enhancements or defect. If possible, please send us the steps to replicate any defect.";
+ window.location.href = link;
+ };
+
render () {
return (
<Navbar.Collapse id="basic-navbar-nav" className="justify-content-center">
@@ -56,8 +63,8 @@ export default class MenuBar extends React.Component {
<StyledNavDropdownItem href="#action/3.1">Refresh Status</StyledNavDropdownItem>
</NavDropdown>
<NavDropdown title="Help" id="basic-nav-dropdown">
- <StyledNavDropdownItem href="#action/3.1">Wiki</StyledNavDropdownItem>
- <StyledNavDropdownItem href="#action/3.2">Contact Us</StyledNavDropdownItem>
+ <NavDropdown.Item onClick={()=> window.open("https://wiki.onap.org/", "_blank")}>Wiki</NavDropdown.Item>
+ <NavDropdown.Item onClick={()=> this.openEmailConsole()}>Contact Us</NavDropdown.Item>
<StyledNavDropdownItem href="#action/3.3">User Info</StyledNavDropdownItem>
</NavDropdown>
</Navbar.Collapse>