fix: api key details section (#7488)
This commit is contained in:
1 parent
ad21bd30b1
commit
582c9c9acf
2 files changed
+12
-1
No files matched your search
@@ -1452,6 +1452,7 @@
|
|||||||
"fields": {
|
"fields": {
|
||||||
"lastUsedAtLabel": "Last used at",
|
"lastUsedAtLabel": "Last used at",
|
||||||
"revokedByLabel": "Revoked by",
|
"revokedByLabel": "Revoked by",
|
||||||
|
"revokedAtLabel": "Revoked at",
|
||||||
"createdByLabel": "Created by"
|
"createdByLabel": "Created by"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
+11
-1
@@ -195,12 +195,22 @@ export const ApiKeyGeneralSection = ({ apiKey }: ApiKeyGeneralSectionProps) => {
|
|||||||
<ActionBy userId={apiKey.created_by} />
|
<ActionBy userId={apiKey.created_by} />
|
||||||
</div>
|
</div>
|
||||||
{apiKey.revoked_at && (
|
{apiKey.revoked_at && (
|
||||||
<div className="grid grid-cols-2 items-center px-6 py-4">
|
<>
|
||||||
|
<div className="text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4">
|
||||||
|
<Text size="small" leading="compact" weight="plus">
|
||||||
|
{t("apiKeyManagement.fields.revokedAtLabel")}
|
||||||
|
</Text>
|
||||||
|
<Text size="small" leading="compact">
|
||||||
|
{getFullDate({ date: apiKey.revoked_at, includeTime: true })}
|
||||||
|
</Text>
|
||||||
|
</div>
|
||||||
|
<div className="text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4">
|
||||||
<Text size="small" leading="compact" weight="plus">
|
<Text size="small" leading="compact" weight="plus">
|
||||||
{t("apiKeyManagement.fields.revokedByLabel")}
|
{t("apiKeyManagement.fields.revokedByLabel")}
|
||||||
</Text>
|
</Text>
|
||||||
<ActionBy userId={apiKey.revoked_by} />
|
<ActionBy userId={apiKey.revoked_by} />
|
||||||
</div>
|
</div>
|
||||||
|
</>
|
||||||
)}
|
)}
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user