mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
parent
9db1d59093
commit
d1662d75c8
@ -51,6 +51,10 @@ export default class MetricComponent extends React.Component {
|
|||||||
formatFullDateTime(v) {
|
formatFullDateTime(v) {
|
||||||
return formatFullDateTimeWithLocale(v, this.props.location.locale);
|
return formatFullDateTimeWithLocale(v, this.props.location.locale);
|
||||||
}
|
}
|
||||||
|
renderLastSeen = lastSeenAt => {
|
||||||
|
return lastSeenAt ? this.formatFullDateTime(lastSeenAt) : 'Never reported';
|
||||||
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { metrics = {}, featureToggle } = this.props;
|
const { metrics = {}, featureToggle } = this.props;
|
||||||
const {
|
const {
|
||||||
@ -113,7 +117,13 @@ export default class MetricComponent extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<AppsLinkList apps={seenApps} />
|
<AppsLinkList apps={seenApps} />
|
||||||
<span>Created {this.formatFullDateTime(featureToggle.createdAt)}</span>
|
<div>
|
||||||
|
<strong>Created: </strong>
|
||||||
|
<span>{this.formatFullDateTime(featureToggle.createdAt)}</span>
|
||||||
|
<br />
|
||||||
|
<strong>Last seen: </strong>
|
||||||
|
<span>{this.renderLastSeen(featureToggle.lastSeenAt)}</span>
|
||||||
|
</div>
|
||||||
</Cell>
|
</Cell>
|
||||||
</Grid>
|
</Grid>
|
||||||
<hr />
|
<hr />
|
||||||
|
Loading…
Reference in New Issue
Block a user