mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 12:28:54 +00:00
Fix secret version history link to user/machine details page
This commit is contained in:
+2
-3
@@ -59,7 +59,6 @@ import { ActorType } from "@app/hooks/api/auditLogs/enums";
|
|||||||
import { useGetReminder } from "@app/hooks/api/reminders";
|
import { useGetReminder } from "@app/hooks/api/reminders";
|
||||||
import { useGetSecretAccessList } from "@app/hooks/api/secrets/queries";
|
import { useGetSecretAccessList } from "@app/hooks/api/secrets/queries";
|
||||||
import { SecretV3RawSanitized, WsTag } from "@app/hooks/api/types";
|
import { SecretV3RawSanitized, WsTag } from "@app/hooks/api/types";
|
||||||
import { ProjectType } from "@app/hooks/api/workspace/types";
|
|
||||||
import { hasSecretReadValueOrDescribePermission } from "@app/lib/fn/permission";
|
import { hasSecretReadValueOrDescribePermission } from "@app/lib/fn/permission";
|
||||||
import { camelCaseToSpaces } from "@app/lib/fn/string";
|
import { camelCaseToSpaces } from "@app/lib/fn/string";
|
||||||
|
|
||||||
@@ -269,9 +268,9 @@ export const SecretDetailSidebar = ({
|
|||||||
) => {
|
) => {
|
||||||
switch (actorType) {
|
switch (actorType) {
|
||||||
case ActorType.USER:
|
case ActorType.USER:
|
||||||
return `/${ProjectType.SecretManager}/${currentWorkspace.id}/members/${membershipId}`;
|
return `/projects/secret-management/${currentWorkspace.id}/members/${membershipId}`;
|
||||||
case ActorType.IDENTITY:
|
case ActorType.IDENTITY:
|
||||||
return `/${ProjectType.SecretManager}/${currentWorkspace.id}/identities/${actorId}`;
|
return `/projects/secret-management/${currentWorkspace.id}/identities/${actorId}`;
|
||||||
default:
|
default:
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user