mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-11 00:08:30 +01:00
moved history into own pane
This commit is contained in:
parent
8815a06454
commit
cb66a2d482
@ -99,7 +99,7 @@ class EditFeatureToggleWrapper extends React.Component {
|
|||||||
}
|
}
|
||||||
<p><strong>Last hour</strong><br /> Yes {lastHour.yes}, No: {lastHour.no}</p>
|
<p><strong>Last hour</strong><br /> Yes {lastHour.yes}, No: {lastHour.no}</p>
|
||||||
</Cell>
|
</Cell>
|
||||||
<Cell col={3}>
|
<Cell col={6}>
|
||||||
{seenApps.length > 0 ?
|
{seenApps.length > 0 ?
|
||||||
(<div><strong>Seen in applications:</strong></div>) :
|
(<div><strong>Seen in applications:</strong></div>) :
|
||||||
<div>
|
<div>
|
||||||
@ -109,8 +109,12 @@ class EditFeatureToggleWrapper extends React.Component {
|
|||||||
}
|
}
|
||||||
<AppsLinkList apps={seenApps} />
|
<AppsLinkList apps={seenApps} />
|
||||||
</Cell>
|
</Cell>
|
||||||
<Cell col={3}>
|
</Grid>
|
||||||
<div><strong>History</strong></div>
|
</div>
|
||||||
|
) : this.state.activeTab === 1 ? (
|
||||||
|
<EditFeatureToggle featureToggle={featureToggle} />
|
||||||
|
) : (
|
||||||
|
<div>
|
||||||
<List style={{ textAlign: 'left' }}>
|
<List style={{ textAlign: 'left' }}>
|
||||||
{history.map(({ createdAt, type, createdBy }, i) =>
|
{history.map(({ createdAt, type, createdBy }, i) =>
|
||||||
<ListItem twoLine key={i}>
|
<ListItem twoLine key={i}>
|
||||||
@ -122,11 +126,7 @@ class EditFeatureToggleWrapper extends React.Component {
|
|||||||
<Link to={`/history/${featureToggleName}`}>
|
<Link to={`/history/${featureToggleName}`}>
|
||||||
See all events.
|
See all events.
|
||||||
</Link>
|
</Link>
|
||||||
</Cell>
|
|
||||||
</Grid>
|
|
||||||
</div>
|
</div>
|
||||||
) : (
|
|
||||||
<EditFeatureToggle featureToggle={featureToggle} />
|
|
||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -139,6 +139,7 @@ class EditFeatureToggleWrapper extends React.Component {
|
|||||||
style={{ marginBottom: '10px' }}>
|
style={{ marginBottom: '10px' }}>
|
||||||
<Tab>Metrics</Tab>
|
<Tab>Metrics</Tab>
|
||||||
<Tab>Edit</Tab>
|
<Tab>Edit</Tab>
|
||||||
|
<Tab>History</Tab>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
|
||||||
{content}
|
{content}
|
||||||
|
Loading…
Reference in New Issue
Block a user