mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
Trim hostname input on SSH Host permission form and fix getWorkspaceUsers key invalidation
This commit is contained in:
@@ -16,8 +16,11 @@ export const workspaceKeys = {
|
|||||||
type ? ["workspaces", { type }] : (["workspaces"] as const),
|
type ? ["workspaces", { type }] : (["workspaces"] as const),
|
||||||
getWorkspaceAuditLogs: (workspaceId: string) =>
|
getWorkspaceAuditLogs: (workspaceId: string) =>
|
||||||
[{ workspaceId }, "workspace-audit-logs"] as const,
|
[{ workspaceId }, "workspace-audit-logs"] as const,
|
||||||
getWorkspaceUsers: (workspaceId: string, includeGroupMembers?: boolean, roles?: string[]) =>
|
getWorkspaceUsers: (
|
||||||
[{ workspaceId, includeGroupMembers, roles }, "workspace-users"] as const,
|
workspaceId: string,
|
||||||
|
includeGroupMembers: boolean = false,
|
||||||
|
roles: string[] = []
|
||||||
|
) => [{ workspaceId, includeGroupMembers, roles }, "workspace-users"] as const,
|
||||||
getWorkspaceUserDetails: (workspaceId: string, membershipId: string) =>
|
getWorkspaceUserDetails: (workspaceId: string, membershipId: string) =>
|
||||||
[{ workspaceId, membershipId }, "workspace-user-details"] as const,
|
[{ workspaceId, membershipId }, "workspace-user-details"] as const,
|
||||||
getWorkspaceIdentityMemberships: (workspaceId: string) =>
|
getWorkspaceIdentityMemberships: (workspaceId: string) =>
|
||||||
|
|||||||
+1
-1
@@ -125,7 +125,7 @@ export const SshHostPermissionConditions = ({ position = 0, isDisabled }: Props)
|
|||||||
errorText={error?.message}
|
errorText={error?.message}
|
||||||
className="mb-0 flex-grow"
|
className="mb-0 flex-grow"
|
||||||
>
|
>
|
||||||
<Input {...field} />
|
<Input {...field} onChange={(e) => field.onChange(e.target.value.trim())} />
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user