diff --git a/packages/nc-gui/components/project/AccessSettings.vue b/packages/nc-gui/components/project/AccessSettings.vue index ebed374551..7f993778c1 100644 --- a/packages/nc-gui/components/project/AccessSettings.vue +++ b/packages/nc-gui/components/project/AccessSettings.vue @@ -357,6 +357,7 @@ const customRow = (record: Record) => ({ ? WorkspaceRolesToProjectRoles[record.workspace_roles] : null " + show-inherit :description="false" :on-role-change="(role) => updateCollaborator(record, role as ProjectRoles)" /> diff --git a/packages/nc-gui/components/roles/Selector.vue b/packages/nc-gui/components/roles/Selector.vue index b87631abdf..4dd5c54b6e 100644 --- a/packages/nc-gui/components/roles/Selector.vue +++ b/packages/nc-gui/components/roles/Selector.vue @@ -5,23 +5,26 @@ import type { SelectValue } from 'ant-design-vue/es/select' const props = withDefaults( defineProps<{ - border?: boolean role: keyof typeof RoleLabels roles: (keyof typeof RoleLabels)[] + onRoleChange: (role: keyof typeof RoleLabels) => void + border?: boolean description?: boolean inherit?: string - onRoleChange: (role: keyof typeof RoleLabels) => void size?: 'sm' | 'md' | 'lg' + showInherit?: boolean }>(), { border: true, description: true, size: 'sm', + showInherit: false, }, ) const roleRef = toRef(props, 'role') const inheritRef = toRef(props, 'inherit') +const showInherit = toRef(props, 'showInherit') const descriptionRef = toRef(props, 'description') const isDropdownOpen = ref(false) const dropdownRef = ref(null) @@ -36,14 +39,38 @@ function onChangeRole(val: SelectValue) {