1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
This commit is contained in:
sveisvei 2017-06-29 09:11:28 +02:00
parent 39cb20484b
commit e8965398e6
2 changed files with 20 additions and 16 deletions

View File

@ -33,7 +33,11 @@ class StrategiesListComponent extends Component {
<strong>{strategy.name}</strong>
</Link>
</ListItemContent>
{strategy.editable === false ? '' : <IconButton name="delete" onClick={() => removeStrategy(strategy)} />}
{
strategy.editable === false ?
'' :
<IconButton name="delete" onClick={() => removeStrategy(strategy)} />
}
</ListItem>
)) : <ListItem>No entries</ListItem>}
</List>

View File

@ -61,23 +61,23 @@ export default class StrategyDetails extends Component {
const tabContent = this.getTabContent(activeTabId);
return (<Grid className="mdl-color--white">
<Cell col={12}>
<HeaderTitle title={strategy.name} subtitle={strategy.description} />
{strategy.editable === false ? '' : <Tabs activeTab={activeTabId} ripple>
<Tab onClick={() => this.goToTab('view')}>
<Cell col={12}>
<HeaderTitle title={strategy.name} subtitle={strategy.description} />
{strategy.editable === false ? '' : <Tabs activeTab={activeTabId} ripple>
<Tab onClick={() => this.goToTab('view')}>
Details
</Tab>
<Tab onClick={() => this.goToTab('edit')}>
</Tab>
<Tab onClick={() => this.goToTab('edit')}>
Edit
</Tab>
</Tabs>}
</Tab>
</Tabs>}
<section>
<div className="content">
{tabContent}
</div>
</section>
</Cell>
</Grid>);
<section>
<div className="content">
{tabContent}
</div>
</section>
</Cell>
</Grid>);
}
}