mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-02-21 01:21:21 +00:00
Show 'Never' when device or gateway has not been online yet. (#8)
Signed-off-by: SAGAR PATEL <sagar.a.patel@slscorp.com>
This commit is contained in:
commit
6c3b346047
@ -147,7 +147,7 @@ class DeviceLayout extends Component<IProps, IState> {
|
||||
confirm={device.getName()}
|
||||
onConfirm={this.deleteDevice}
|
||||
>
|
||||
<Button danger type="primary">Delete devicee</Button>
|
||||
<Button danger type="primary">Delete device</Button>
|
||||
</DeleteConfirm>
|
||||
]}
|
||||
/>
|
||||
|
@ -71,6 +71,7 @@ class ListDevices extends Component<IProps, IState> {
|
||||
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
||||
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
||||
}
|
||||
return "Never";
|
||||
},
|
||||
},
|
||||
{
|
||||
@ -183,7 +184,7 @@ class ListDevices extends Component<IProps, IState> {
|
||||
<Space direction="vertical" size="large" style={{width: "100%"}}>
|
||||
<Modal title="Add selected devices to multicast-group" visible={this.state.mgModalVisible} onOk={this.handleMgModalOk} onCancel={this.hideMgModal} okButtonProps={{disabled: this.state.mgSelected === ""}}>
|
||||
<Space direction="vertical" size="large" style={{width: "100%"}}>
|
||||
<Select style={{width: "100%"}} onChange={this.onMgSelected}>
|
||||
<Select style={{width: "100%"}} onChange={this.onMgSelected} placeholder="Select Multicast-group">
|
||||
{mgOptions}
|
||||
</Select>
|
||||
</Space>
|
||||
@ -205,4 +206,4 @@ class ListDevices extends Component<IProps, IState> {
|
||||
}
|
||||
}
|
||||
|
||||
export default ListDevices;
|
||||
export default ListDevices;
|
@ -32,6 +32,7 @@ class ListGateways extends Component<IProps> {
|
||||
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
||||
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
||||
}
|
||||
return "Never";
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -125,4 +126,4 @@ class ListGateways extends Component<IProps> {
|
||||
}
|
||||
}
|
||||
|
||||
export default ListGateways;
|
||||
export default ListGateways;
|
Loading…
x
Reference in New Issue
Block a user