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:
parent
305c4a5573
commit
a5c194e5ed
@ -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} />}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user