mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-09 00:00:01 +01:00
disallow routing
This commit is contained in:
parent
c7948f0658
commit
ac3fa5dced
1 changed files with 9 additions and 8 deletions
17
src/app.js
17
src/app.js
|
@ -80,6 +80,7 @@ class App extends React.Component {
|
|||
}
|
||||
|
||||
let currentUser = JSON.parse(currentUserRaw);
|
||||
let pages = branding.values.pages;
|
||||
|
||||
return <DndProvider backend={HTML5Backend} >
|
||||
<div className="app">
|
||||
|
@ -93,14 +94,14 @@ class App extends React.Component {
|
|||
|
||||
<div className='app-content app-content-margin-left'>
|
||||
<Route exact path="/" component={Home} />
|
||||
<Route path="/home" component={Home} />
|
||||
<Route exact path="/scenarios" component={Scenarios} />
|
||||
<Route path="/scenarios/:scenario" component={Scenario} />
|
||||
<Route path="/dashboards/:dashboard" component={Dashboard} />
|
||||
<Route path="/infrastructure" component={InfrastructureComponents} />
|
||||
<Route path="/account" component={User} />
|
||||
<Route path="/users" component={Users} />
|
||||
<Route path="/api" component={APIBrowser} />
|
||||
{ pages.home ? <Route path="/home" component={Home} /> : '' }
|
||||
{ pages.scenarios ? <Route exact path="/scenarios" component={Scenarios} /> : '' }
|
||||
{ pages.scenarios ? <Route path="/scenarios/:scenario" component={Scenario} /> : '' }
|
||||
{ pages.scenarios ? <Route path="/dashboards/:dashboard" component={Dashboard} /> : '' }
|
||||
{ pages.infrastructure ? <Route path="/infrastructure" component={InfrastructureComponents} /> : '' }
|
||||
{ pages.account ? <Route path="/account" component={User} /> : '' }
|
||||
{ pages.users ? <Route path="/users" component={Users} /> : '' }
|
||||
{ pages.api ? <Route path="/api" component={APIBrowser} /> : '' }
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue