1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-06-18 01:18:23 +02: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> <strong>{strategy.name}</strong>
</Link> </Link>
</ListItemContent> </ListItemContent>
{strategy.editable === false ? '' : <IconButton name="delete" onClick={() => removeStrategy(strategy)} />} {
strategy.editable === false ?
'' :
<IconButton name="delete" onClick={() => removeStrategy(strategy)} />
}
</ListItem> </ListItem>
)) : <ListItem>No entries</ListItem>} )) : <ListItem>No entries</ListItem>}
</List> </List>

View File

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