Hide expires on message if never expires is selected (#12723)
This commit is contained in:
parent
795aaca64f
commit
a20179727b
|
@ -202,10 +202,10 @@ export default function ApiKeyDialogForm({
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<span className="text-subtle mt-2 text-xs">
|
{!watchNeverExpires && <span className="text-subtle mt-2 text-xs">
|
||||||
{t("api_key_expires_on")}
|
{t("api_key_expires_on")}
|
||||||
<span className="font-bold"> {dayjs(expiryDate).format("DD-MM-YYYY")}</span>
|
<span className="font-bold"> {dayjs(expiryDate).format("DD-MM-YYYY")}</span>
|
||||||
</span>
|
</span>}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user