sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 1 | /*- |
| 2 | * ============LICENSE_START======================================================= |
| 3 | * ONAP CLAMP |
| 4 | * ================================================================================ |
| 5 | * Copyright (C) 2019 AT&T Intellectual Property. All rights |
| 6 | * reserved. |
| 7 | * ================================================================================ |
| 8 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | * you may not use this file except in compliance with the License. |
| 10 | * You may obtain a copy of the License at |
| 11 | * |
| 12 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | * |
| 14 | * Unless required by applicable law or agreed to in writing, software |
| 15 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | * See the License for the specific language governing permissions and |
| 18 | * limitations under the License. |
| 19 | * ============LICENSE_END============================================ |
| 20 | * =================================================================== |
| 21 | * |
| 22 | */ |
| 23 | |
| 24 | import React from 'react'; |
| 25 | import styled from 'styled-components'; |
sebdet | e44fdb1 | 2019-07-12 12:25:56 +0200 | [diff] [blame] | 26 | import MenuBar from './components/menu/MenuBar'; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 27 | import Navbar from 'react-bootstrap/Navbar'; |
| 28 | import logo from './logo.png'; |
sebdet | e44fdb1 | 2019-07-12 12:25:56 +0200 | [diff] [blame] | 29 | import { GlobalClampStyle } from './theme/globalStyle.js'; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 30 | |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 31 | import LoopSvg from './components/loop_viewer/svg/LoopSvg'; |
| 32 | import LoopLogs from './components/loop_viewer/logs/LoopLogs'; |
| 33 | import LoopStatus from './components/loop_viewer/status/LoopStatus'; |
sebdet | e44fdb1 | 2019-07-12 12:25:56 +0200 | [diff] [blame] | 34 | import UserService from './api/UserService'; |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 35 | import LoopCache from './api/LoopCache'; |
xuegao | ac42c4b | 2019-10-09 16:12:37 +0200 | [diff] [blame] | 36 | import LoopActionService from './api/LoopActionService'; |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 37 | |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 38 | import { Route } from 'react-router-dom' |
sebdet | 67c76a4 | 2019-11-15 17:33:44 +0100 | [diff] [blame] | 39 | import OpenLoopModal from './components/dialogs/Loop/OpenLoopModal'; |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 40 | import OperationalPolicyModal from './components/dialogs/OperationalPolicy/OperationalPolicyModal'; |
| 41 | import ConfigurationPolicyModal from './components/dialogs/ConfigurationPolicy/ConfigurationPolicyModal'; |
sebdet | b13a790 | 2019-11-15 17:26:45 +0100 | [diff] [blame] | 42 | import LoopPropertiesModal from './components/dialogs/Loop/LoopPropertiesModal'; |
sebdet | 4dc849f | 2019-11-15 17:49:42 +0100 | [diff] [blame] | 43 | import UserInfoModal from './components/dialogs/UserInfoModal'; |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 44 | import LoopService from './api/LoopService'; |
drveerendra | 684057e | 2019-11-11 19:37:39 -0500 | [diff] [blame] | 45 | import ViewToscaPolicyModal from './components/dialogs/Tosca/ViewToscaPolicyModal'; |
| 46 | import ViewBlueprintMicroServiceTemplatesModal from './components/dialogs/Tosca/ViewBlueprintMicroServiceTemplatesModal'; |
sebdet | f9e2cee | 2019-08-09 18:36:09 +0200 | [diff] [blame] | 47 | import PerformAction from './components/dialogs/PerformActions'; |
| 48 | import RefreshStatus from './components/dialogs/RefreshStatus'; |
sebdet | 2e9ae12 | 2019-11-15 16:28:55 +0100 | [diff] [blame] | 49 | import DeployLoopModal from './components/dialogs/Loop/DeployLoopModal'; |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 50 | import Alert from 'react-bootstrap/Alert'; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 51 | |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 52 | import { Link } from 'react-router-dom'; |
| 53 | |
| 54 | const StyledMainDiv = styled.div` |
| 55 | background-color: ${props => props.theme.backgroundColor}; |
| 56 | ` |
| 57 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 58 | const ProjectNameStyled = styled.a` |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 59 | vertical-align: middle; |
| 60 | padding-left: 30px; |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 61 | font-size: 36px; |
| 62 | font-weight: bold; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 63 | ` |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 64 | |
| 65 | const StyledRouterLink = styled(Link)` |
| 66 | color: ${props => props.theme.menuFontColor}; |
| 67 | background-color: ${props => props.theme.backgroundColor}; |
| 68 | ` |
| 69 | |
| 70 | const StyledLoginInfo = styled.a` |
| 71 | color: ${props => props.theme.menuFontColor}; |
| 72 | background-color: ${props => props.theme.backgroundColor}; |
| 73 | ` |
| 74 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 75 | const LoopViewDivStyled = styled.div` |
sebdet | 190227a | 2019-07-19 16:51:19 +0200 | [diff] [blame] | 76 | height: 100%; |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 77 | overflow: hidden; |
| 78 | margin-left: 10px; |
| 79 | margin-right: 10px; |
| 80 | margin-bottom: 10px; |
| 81 | color: ${props => props.theme.loopViewerFontColor}; |
| 82 | background-color: ${props => props.theme.loopViewerBackgroundColor}; |
| 83 | border: 1px solid transparent; |
| 84 | border-color: ${props => props.theme.loopViewerHeaderBackgroundColor}; |
| 85 | ` |
| 86 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 87 | const LoopViewHeaderDivStyled = styled.div` |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 88 | background-color: ${props => props.theme.loopViewerHeaderBackgroundColor}; |
| 89 | padding: 10px 10px; |
| 90 | color: ${props => props.theme.loopViewerHeaderFontColor}; |
| 91 | ` |
| 92 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 93 | const LoopViewBodyDivStyled = styled.div` |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 94 | background-color: ${props => (props.theme.loopViewerBackgroundColor)}; |
| 95 | padding: 10px 10px; |
| 96 | color: ${props => (props.theme.loopViewerHeaderFontColor)}; |
| 97 | height: 95%; |
| 98 | ` |
| 99 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 100 | export default class LoopUI extends React.Component { |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 101 | |
sebdet | 2dacb9b | 2019-07-17 13:48:44 +0200 | [diff] [blame] | 102 | static defaultLoopName="Empty (NO loop loaded yet)"; |
| 103 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 104 | state = { |
| 105 | userName: null, |
sebdet | 2dacb9b | 2019-07-17 13:48:44 +0200 | [diff] [blame] | 106 | loopName: LoopUI.defaultLoopName, |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 107 | loopCache: new LoopCache({}), |
| 108 | showAlert: false |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 109 | }; |
xuegao | 7c7323d | 2019-07-09 11:52:20 +0200 | [diff] [blame] | 110 | |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 111 | constructor() { |
| 112 | super(); |
| 113 | this.getUser = this.getUser.bind(this); |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 114 | this.logout = this.logout.bind(this); |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 115 | this.updateLoopCache = this.updateLoopCache.bind(this); |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 116 | this.loadLoop = this.loadLoop.bind(this); |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 117 | this.closeLoop = this.closeLoop.bind(this); |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 118 | this.showAlert = this.showAlert.bind(this); |
| 119 | this.disableAlert = this.disableAlert.bind(this); |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 120 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 121 | |
sebdet | 2dacb9b | 2019-07-17 13:48:44 +0200 | [diff] [blame] | 122 | componentWillMount() { |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 123 | this.getUser(); |
| 124 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 125 | |
| 126 | getUser() { |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 127 | UserService.login().then(user => { |
| 128 | this.setState({ userName: user }) |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 129 | }); |
| 130 | } |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 131 | |
| 132 | logout() { |
| 133 | UserService.logout().then(user => { |
| 134 | this.setState({ userName: user }); |
| 135 | window.location.reload(); |
| 136 | }); |
| 137 | |
| 138 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 139 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 140 | renderMenuNavBar() { |
| 141 | return ( |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 142 | <MenuBar loopName={this.state.loopName}/> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 143 | ); |
| 144 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 145 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 146 | renderUserLoggedNavBar() { |
| 147 | return ( |
| 148 | <Navbar.Text> |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 149 | <StyledLoginInfo>Signed in as: </StyledLoginInfo> |
| 150 | <StyledRouterLink to="/userInfo">{this.state.userName}</StyledRouterLink> |
| 151 | <StyledRouterLink to="/logout/"> (logout)</StyledRouterLink> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 152 | </Navbar.Text> |
| 153 | ); |
| 154 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 155 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 156 | renderLogoNavBar() { |
| 157 | return ( |
| 158 | <Navbar.Brand> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 159 | <img height="50px" width="234px" src={logo} alt="" /> |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 160 | <ProjectNameStyled>CLAMP</ProjectNameStyled> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 161 | </Navbar.Brand> |
| 162 | ); |
| 163 | } |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 164 | |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 165 | renderAlertBar() { |
| 166 | return ( |
| 167 | <Alert variant="danger" show={this.state.showAlert} onClose={this.disableAlert} dismissible> |
| 168 | {this.state.showMessage} |
| 169 | </Alert> |
| 170 | ); |
| 171 | } |
| 172 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 173 | renderNavBar() { |
| 174 | return ( |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 175 | <Navbar > |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 176 | {this.renderLogoNavBar()} |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 177 | <Navbar.Toggle aria-controls="responsive-navbar-nav" /> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 178 | {this.renderMenuNavBar()} |
| 179 | {this.renderUserLoggedNavBar()} |
| 180 | </Navbar> |
| 181 | ); |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 182 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 183 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 184 | renderLoopViewHeader() { |
| 185 | return ( |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 186 | <LoopViewHeaderDivStyled> |
sebdet | 190227a | 2019-07-19 16:51:19 +0200 | [diff] [blame] | 187 | Loop Viewer - {this.state.loopName} |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 188 | </LoopViewHeaderDivStyled> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 189 | ); |
| 190 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 191 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 192 | renderLoopViewBody() { |
| 193 | return ( |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 194 | <LoopViewBodyDivStyled> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 195 | <LoopSvg loopCache={this.state.loopCache} /> |
sebdet | 190227a | 2019-07-19 16:51:19 +0200 | [diff] [blame] | 196 | <LoopStatus loopCache={this.state.loopCache}/> |
sebdet | c1ccc54 | 2019-07-19 09:50:33 +0200 | [diff] [blame] | 197 | <LoopLogs loopCache={this.state.loopCache} /> |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 198 | </LoopViewBodyDivStyled> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 199 | ); |
| 200 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 201 | |
xuegao | e52d572 | 2019-07-25 15:43:06 +0200 | [diff] [blame] | 202 | getLoopCache() { |
| 203 | return this.state.loopCache; |
| 204 | |
| 205 | } |
xuegao | 5fe750c | 2019-08-06 13:03:53 +0200 | [diff] [blame] | 206 | |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 207 | renderLoopViewer() { |
| 208 | return ( |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 209 | <LoopViewDivStyled> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 210 | {this.renderLoopViewHeader()} |
| 211 | {this.renderLoopViewBody()} |
sebdet | 4946e5b | 2019-07-10 12:32:36 +0200 | [diff] [blame] | 212 | </LoopViewDivStyled> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 213 | ); |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 214 | } |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 215 | |
| 216 | updateLoopCache(loopJson) { |
xuegao | 52432d6 | 2019-10-04 16:11:22 +0200 | [diff] [blame] | 217 | this.setState({ loopCache: new LoopCache(loopJson) }); |
| 218 | this.setState({ loopName: this.state.loopCache.getLoopName() }); |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 219 | console.info(this.state.loopName+" loop loaded successfully"); |
| 220 | } |
xuegao | 5fe750c | 2019-08-06 13:03:53 +0200 | [diff] [blame] | 221 | |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 222 | showAlert(message) { |
| 223 | this.setState ({ showAlert: true, showMessage:message }); |
| 224 | } |
| 225 | |
| 226 | disableAlert() { |
| 227 | this.setState ({ showAlert: false }); |
| 228 | } |
| 229 | |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 230 | loadLoop(loopName) { |
| 231 | LoopService.getLoop(loopName).then(loop => { |
| 232 | console.debug("Updating loopCache"); |
xuegao | ac42c4b | 2019-10-09 16:12:37 +0200 | [diff] [blame] | 233 | LoopActionService.refreshStatus(loopName).then(data => { |
| 234 | this.updateLoopCache(data); |
| 235 | this.props.history.push('/'); |
| 236 | }) |
| 237 | .catch(error => { |
| 238 | this.updateLoopCache(loop); |
| 239 | this.props.history.push('/'); |
| 240 | }); |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 241 | }); |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 242 | } |
| 243 | |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 244 | closeLoop() { |
| 245 | this.setState({ loopCache: new LoopCache({}), loopName: LoopUI.defaultLoopName }); |
| 246 | this.props.history.push('/'); |
| 247 | } |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 248 | |
| 249 | render() { |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 250 | return ( |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 251 | <StyledMainDiv id="main_div"> |
drveerendra | 684057e | 2019-11-11 19:37:39 -0500 | [diff] [blame] | 252 | <Route path="/viewToscaPolicyModal" render={(routeProps) => (<ViewToscaPolicyModal {...routeProps} />)} /> |
| 253 | <Route path="/viewBlueprintMicroServiceTemplatesModal" render={(routeProps) => (<ViewBlueprintMicroServiceTemplatesModal {...routeProps} />)} /> |
sebdet | 493c383 | 2019-07-15 17:26:18 +0200 | [diff] [blame] | 254 | <Route path="/operationalPolicyModal" |
xuegao | 2f5b2cd | 2020-01-06 16:13:46 +0100 | [diff] [blame] | 255 | render={(routeProps) => (<OperationalPolicyModal {...routeProps} loopCache={this.getLoopCache()} loadLoopFunction={this.loadLoop} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
sebdet | 83ce076 | 2019-08-02 14:53:59 +0200 | [diff] [blame] | 256 | <Route path="/configurationPolicyModal/:componentName" render={(routeProps) => (<ConfigurationPolicyModal {...routeProps} loopCache={this.getLoopCache()} loadLoopFunction={this.loadLoop}/>)} /> |
| 257 | <Route path="/openLoop" render={(routeProps) => (<OpenLoopModal {...routeProps} loadLoopFunction={this.loadLoop} />)} /> |
sebdet | b13a790 | 2019-11-15 17:26:45 +0100 | [diff] [blame] | 258 | <Route path="/loopProperties" render={(routeProps) => (<LoopPropertiesModal {...routeProps} loopCache={this.getLoopCache()} loadLoopFunction={this.loadLoop}/>)} /> |
sebdet | 4dc849f | 2019-11-15 17:49:42 +0100 | [diff] [blame] | 259 | <Route path="/userInfo" render={(routeProps) => (<UserInfoModal {...routeProps} />)} /> |
xuegao | 691e2b7 | 2019-08-16 11:07:24 +0200 | [diff] [blame] | 260 | <Route path="/closeLoop" render={this.closeLoop} /> |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 261 | <Route path="/submit" render={(routeProps) => (<PerformAction {...routeProps} loopAction="submit" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 262 | <Route path="/stop" render={(routeProps) => (<PerformAction {...routeProps} loopAction="stop" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 263 | <Route path="/restart" render={(routeProps) => (<PerformAction {...routeProps} loopAction="restart" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 264 | <Route path="/delete" render={(routeProps) => (<PerformAction {...routeProps} loopAction="delete" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
| 265 | <Route path="/undeploy" render={(routeProps) => (<PerformAction {...routeProps} loopAction="undeploy" loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
sebdet | 2e9ae12 | 2019-11-15 16:28:55 +0100 | [diff] [blame] | 266 | <Route path="/deploy" render={(routeProps) => (<DeployLoopModal {...routeProps} loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 267 | <Route path="/refreshStatus" render={(routeProps) => (<RefreshStatus {...routeProps} loopCache={this.getLoopCache()} updateLoopFunction={this.updateLoopCache} showAlert={this.showAlert}/>)} /> |
sebdet | 687b8de | 2019-08-26 14:29:11 -0700 | [diff] [blame] | 268 | <Route path="/logout" render={this.logout} /> |
| 269 | <GlobalClampStyle /> |
xuegao | 0efeb6b | 2019-10-07 14:36:34 +0200 | [diff] [blame] | 270 | {this.renderAlertBar()} |
sebdet | 8a02dd7 | 2019-07-31 17:11:11 +0200 | [diff] [blame] | 271 | {this.renderNavBar()} |
| 272 | {this.renderLoopViewer()} |
sebdet | d0d6563 | 2019-08-26 05:47:01 -0700 | [diff] [blame] | 273 | </StyledMainDiv> |
sebdet | c8d6130 | 2019-07-04 15:50:34 +0200 | [diff] [blame] | 274 | ); |
| 275 | } |
| 276 | } |