mirror of
https://github.com/Unleash/unleash.git
synced 2025-07-17 13:46:47 +02:00
add more entries
This commit is contained in:
parent
dc2e68dc29
commit
3faa521a38
@ -130,7 +130,7 @@ class EditFeatureToggleWrapper extends React.Component {
|
|||||||
{history.map(({ createdAt, type, createdBy }, i) =>
|
{history.map(({ createdAt, type, createdBy }, i) =>
|
||||||
<ListItem twoLine key={i}>
|
<ListItem twoLine key={i}>
|
||||||
<ListItemContent title={type} avatar={getIcon(type)} subtitle={createdAt}>
|
<ListItemContent title={type} avatar={getIcon(type)} subtitle={createdAt}>
|
||||||
{createdBy}
|
{type} <small>{createdBy}</small>
|
||||||
</ListItemContent>
|
</ListItemContent>
|
||||||
</ListItem>)}
|
</ListItem>)}
|
||||||
</List>
|
</List>
|
||||||
@ -188,7 +188,7 @@ function getHistoryFromToggle (state, toggleName) {
|
|||||||
if (state.history.hasIn(['toggles', toggleName])) {
|
if (state.history.hasIn(['toggles', toggleName])) {
|
||||||
return state.history
|
return state.history
|
||||||
.getIn(['toggles', toggleName])
|
.getIn(['toggles', toggleName])
|
||||||
.slice(0, 5)
|
.slice(0, 10)
|
||||||
.toJS()
|
.toJS()
|
||||||
.map(({ createdAt, createdBy, type }) => ({
|
.map(({ createdAt, createdBy, type }) => ({
|
||||||
createdAt: new Date(createdAt).toLocaleString('nb-NO'),
|
createdAt: new Date(createdAt).toLocaleString('nb-NO'),
|
||||||
|
Loading…
Reference in New Issue
Block a user