mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-28 06:49:43 +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()}
|
confirm={device.getName()}
|
||||||
onConfirm={this.deleteDevice}
|
onConfirm={this.deleteDevice}
|
||||||
>
|
>
|
||||||
<Button danger type="primary">Delete devicee</Button>
|
<Button danger type="primary">Delete device</Button>
|
||||||
</DeleteConfirm>
|
</DeleteConfirm>
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
@ -71,6 +71,7 @@ class ListDevices extends Component<IProps, IState> {
|
|||||||
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
||||||
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
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%"}}>
|
<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 === ""}}>
|
<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%"}}>
|
<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}
|
{mgOptions}
|
||||||
</Select>
|
</Select>
|
||||||
</Space>
|
</Space>
|
||||||
|
@ -32,6 +32,7 @@ class ListGateways extends Component<IProps> {
|
|||||||
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
ts.setUTCSeconds(record.lastSeenAt.seconds);
|
||||||
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
return moment(ts).format("YYYY-MM-DD HH:mm:ss");
|
||||||
}
|
}
|
||||||
|
return "Never";
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user