@ -62,7 +62,7 @@ export const useWorkflowRunRecordActions = ({
|
||||
type: ActionMenuEntryType.WorkflowRun,
|
||||
key: `workflow-run-${activeWorkflowVersion.id}`,
|
||||
scope: ActionMenuEntryScope.RecordSelection,
|
||||
label: msg`${name}`, // eslint-disable-line lingui/no-single-variables-to-translate
|
||||
label: msg`${name}`,
|
||||
position: index,
|
||||
Icon: IconSettingsAutomation,
|
||||
onClick: async () => {
|
||||
|
||||
@ -37,7 +37,7 @@ export const useRunWorkflowActions = () => {
|
||||
type: ActionMenuEntryType.WorkflowRun,
|
||||
key: `workflow-run-${activeWorkflowVersion.id}`,
|
||||
scope: ActionMenuEntryScope.Global,
|
||||
label: msg`${name}`, // eslint-disable-line lingui/no-single-variables-to-translate
|
||||
label: msg`${name}`,
|
||||
position: index,
|
||||
Icon: IconSettingsAutomation,
|
||||
useAction: () => {
|
||||
|
||||
@ -8,11 +8,7 @@ import {
|
||||
IconTrashX,
|
||||
Section,
|
||||
} from 'twenty-ui';
|
||||
import {
|
||||
Role,
|
||||
SettingsFeatures,
|
||||
WorkspaceMember,
|
||||
} from '~/generated-metadata/graphql';
|
||||
import { Role, SettingsFeatures } from '~/generated-metadata/graphql';
|
||||
import { RolePermissionsObjectsTableHeader } from '~/pages/settings/roles/components/RolePermissionsObjectsTableHeader';
|
||||
import { RolePermissionsSettingsTableHeader } from '~/pages/settings/roles/components/RolePermissionsSettingsTableHeader';
|
||||
import { RolePermissionsSettingsTableRow } from '~/pages/settings/roles/components/RolePermissionsSettingsTableRow';
|
||||
@ -26,9 +22,7 @@ const StyledRolePermissionsContainer = styled.div`
|
||||
`;
|
||||
|
||||
type RolePermissionsProps = {
|
||||
role: Pick<Role, 'id' | 'label' | 'canUpdateAllSettings'> & {
|
||||
workspaceMembers: Array<WorkspaceMember>;
|
||||
};
|
||||
role: Pick<Role, 'id' | 'canUpdateAllSettings'>;
|
||||
};
|
||||
|
||||
export const RolePermissions = ({ role }: RolePermissionsProps) => {
|
||||
|
||||
Reference in New Issue
Block a user