mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
fix frontend lint
This commit is contained in:
+29
-31
@@ -38,8 +38,6 @@ const MEMBERS_PERMISSIONS = [
|
|||||||
{ action: "delete", label: "Remove members" }
|
{ action: "delete", label: "Remove members" }
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const PROJECT_TEMPLATES_PERMISSIONS = [
|
const PROJECT_TEMPLATES_PERMISSIONS = [
|
||||||
{ action: "read", label: "View & Apply" },
|
{ action: "read", label: "View & Apply" },
|
||||||
{ action: "create", label: "Create" },
|
{ action: "create", label: "Create" },
|
||||||
@@ -122,35 +120,35 @@ export const RolePermissionRow = ({ isEditable, title, formName, control, setVal
|
|||||||
}
|
}
|
||||||
setIsCustom.off();
|
setIsCustom.off();
|
||||||
|
|
||||||
switch (val) {
|
switch (val) {
|
||||||
case Permission.NoAccess:
|
case Permission.NoAccess:
|
||||||
setValue(
|
setValue(
|
||||||
`permissions.${formName}`,
|
`permissions.${formName}`,
|
||||||
{ read: false, edit: false, create: false, delete: false },
|
{ read: false, edit: false, create: false, delete: false },
|
||||||
{ shouldDirty: true }
|
{ shouldDirty: true }
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case Permission.FullAccess:
|
case Permission.FullAccess:
|
||||||
setValue(
|
setValue(
|
||||||
`permissions.${formName}`,
|
`permissions.${formName}`,
|
||||||
{ read: true, edit: true, create: true, delete: true },
|
{ read: true, edit: true, create: true, delete: true },
|
||||||
{ shouldDirty: true }
|
{ shouldDirty: true }
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
case Permission.ReadOnly:
|
case Permission.ReadOnly:
|
||||||
setValue(
|
setValue(
|
||||||
`permissions.${formName}`,
|
`permissions.${formName}`,
|
||||||
{ read: true, edit: false, create: false, delete: false },
|
{ read: true, edit: false, create: false, delete: false },
|
||||||
{ shouldDirty: true }
|
{ shouldDirty: true }
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
setValue(
|
setValue(
|
||||||
`permissions.${formName}`,
|
`permissions.${formName}`,
|
||||||
{ read: false, edit: false, create: false, delete: false },
|
{ read: false, edit: false, create: false, delete: false },
|
||||||
{ shouldDirty: true }
|
{ shouldDirty: true }
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -14,11 +14,11 @@ import {
|
|||||||
TFormSchema
|
TFormSchema
|
||||||
} from "../OrgRoleModifySection.utils";
|
} from "../OrgRoleModifySection.utils";
|
||||||
import { OrgPermissionAdminConsoleRow } from "./OrgPermissionAdminConsoleRow";
|
import { OrgPermissionAdminConsoleRow } from "./OrgPermissionAdminConsoleRow";
|
||||||
|
import { OrgPermissionBillingRow } from "./OrgPermissionBillingRow";
|
||||||
import { OrgGatewayPermissionRow } from "./OrgPermissionGatewayRow";
|
import { OrgGatewayPermissionRow } from "./OrgPermissionGatewayRow";
|
||||||
import { OrgPermissionGroupRow } from "./OrgPermissionGroupRow";
|
import { OrgPermissionGroupRow } from "./OrgPermissionGroupRow";
|
||||||
import { OrgPermissionIdentityRow } from "./OrgPermissionIdentityRow";
|
import { OrgPermissionIdentityRow } from "./OrgPermissionIdentityRow";
|
||||||
import { OrgPermissionKmipRow } from "./OrgPermissionKmipRow";
|
import { OrgPermissionKmipRow } from "./OrgPermissionKmipRow";
|
||||||
import { OrgPermissionBillingRow } from "./OrgPermissionBillingRow";
|
|
||||||
import { OrgPermissionSecretShareRow } from "./OrgPermissionSecretShareRow";
|
import { OrgPermissionSecretShareRow } from "./OrgPermissionSecretShareRow";
|
||||||
import { OrgRoleWorkspaceRow } from "./OrgRoleWorkspaceRow";
|
import { OrgRoleWorkspaceRow } from "./OrgRoleWorkspaceRow";
|
||||||
import { RolePermissionRow } from "./RolePermissionRow";
|
import { RolePermissionRow } from "./RolePermissionRow";
|
||||||
|
|||||||
Reference in New Issue
Block a user