1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Do not show Created on DetailsPane when there's no timestamp.

Signed-off-by: Juho Heikka <juho.heikka@gmail.com>
This commit is contained in:
Juho Heikka 2023-01-19 17:33:49 +02:00
parent 305c4a5573
commit a5c194e5ed

View File

@ -62,7 +62,7 @@ const NonInjectedKubeObjectMeta = observer(({
return ( return (
<> <>
<DrawerItem name="Created" hidden={isHidden("creationTimestamp")}> <DrawerItem name="Created" hidden={isHidden("creationTimestamp") || !creationTimestamp}>
<KubeObjectAge object={object} compact={false} /> <KubeObjectAge object={object} compact={false} />
{" ago "} {" ago "}
{creationTimestamp && <LocaleDate date={creationTimestamp} />} {creationTimestamp && <LocaleDate date={creationTimestamp} />}