mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-25 19:15:34 +00:00
client/web: fix key expiry text when expiry disabled
Displays "No expiry" when disabled. Updates #10261 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
This commit is contained in:
parent
06af3e3014
commit
77f5d669fa
@ -94,7 +94,9 @@ export default function DeviceDetailsView({
|
|||||||
{node.KeyExpired
|
{node.KeyExpired
|
||||||
? "Expired"
|
? "Expired"
|
||||||
: // TODO: present as relative expiry (e.g. "5 months from now")
|
: // TODO: present as relative expiry (e.g. "5 months from now")
|
||||||
new Date(node.KeyExpiry).toLocaleString()}
|
node.KeyExpiry
|
||||||
|
? new Date(node.KeyExpiry).toLocaleString()
|
||||||
|
: "No expiry"}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user