fix(webapp): hide misleading root API key creation dates (#4612)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
---
|
||||
area: webapp
|
||||
type: fix
|
||||
---
|
||||
|
||||
Root API keys no longer show an environment creation timestamp as their creation date.
|
||||
@@ -71,7 +71,6 @@ export class ApiKeysPresenter {
|
||||
id: true,
|
||||
apiKey: true,
|
||||
type: true,
|
||||
createdAt: true,
|
||||
apiKeys: {
|
||||
where: showRevoked ? undefined : { revokedAt: null },
|
||||
orderBy: { createdAt: "desc" },
|
||||
@@ -133,7 +132,6 @@ export class ApiKeysPresenter {
|
||||
name: "Root API key",
|
||||
value: keyEnvironment.apiKey,
|
||||
obfuscated: obfuscateApiKey(keyEnvironment.type, keyEnvironment.apiKey.slice(-4)),
|
||||
createdAt: keyEnvironment.createdAt,
|
||||
},
|
||||
apiKeys: keyEnvironment.apiKeys.map((apiKey, index) => {
|
||||
const { presetId, scopes, ...apiKeyData } = apiKey;
|
||||
|
||||
+1
-3
@@ -404,9 +404,7 @@ export default function Page() {
|
||||
<ApiKeyAccess label="No restrictions" />
|
||||
</TableCell>
|
||||
<TableCell>–</TableCell>
|
||||
<TableCell>
|
||||
<DateTime date={rootApiKey.createdAt} />
|
||||
</TableCell>
|
||||
<TableCell>–</TableCell>
|
||||
<TableCell>–</TableCell>
|
||||
<TableCellMenu
|
||||
isSticky
|
||||
|
||||
Reference in New Issue
Block a user