diff --git a/packages/nc-gui/components/project/AccessSettings.vue b/packages/nc-gui/components/project/AccessSettings.vue
index 8512b3adbf..54d136f32e 100644
--- a/packages/nc-gui/components/project/AccessSettings.vue
+++ b/packages/nc-gui/components/project/AccessSettings.vue
@@ -213,6 +213,7 @@ onMounted(async () => {
? WorkspaceRolesToProjectRoles[collab.workspace_roles]
: null
"
+ :description="false"
:on-role-change="(role: ProjectRoles) => updateCollaborator(collab, role)"
/>
diff --git a/packages/nc-gui/components/project/InviteProjectCollabSection.vue b/packages/nc-gui/components/project/InviteProjectCollabSection.vue
index ba5bfdea32..964db757a4 100644
--- a/packages/nc-gui/components/project/InviteProjectCollabSection.vue
+++ b/packages/nc-gui/components/project/InviteProjectCollabSection.vue
@@ -122,7 +122,7 @@ const copyUrl = async () => {
:role="inviteData.roles"
:roles="ProjectRoles"
:on-role-change="(role: ProjectRoles) => (inviteData.roles = role)"
- :description="false"
+ :description="true"
/>
-import { RoleColors, RoleDescriptions, RoleIcons, RoleLabels } from 'nocodb-sdk'
+import { RoleColors, RoleIcons, RoleLabels } from 'nocodb-sdk'
import { toRef } from '#imports'
const props = withDefaults(
defineProps<{
role: keyof typeof RoleLabels
- description?: boolean
clickable?: boolean
inherit?: boolean
+ border?: boolean
}>(),
{
- description: true,
clickable: false,
inherit: false,
+ border: true,
},
)
const roleRef = toRef(props, 'role')
-const descriptionRef = toRef(props, 'description')
const clickableRef = toRef(props, 'clickable')
const inheritRef = toRef(props, 'inherit')
+const borderRef = toRef(props, 'border')
const roleProperties = computed(() => {
const role = roleRef.value
@@ -27,13 +27,11 @@ const roleProperties = computed(() => {
const color = RoleColors[role]
const icon = RoleIcons[role]
const label = RoleLabels[role]
- const descriptionText = RoleDescriptions[role]
return {
color,
icon,
label,
- descriptionText,
}
})
@@ -42,37 +40,34 @@ console.log('dummy')
-
-
-
-
- {{ roleProperties.label }}
-
-
-
-
- Current Workspace Role
-
-
-
{{ roleProperties.descriptionText }}
+
+
+
+ {{ roleProperties.label }}
+
+
+
+
+
+ Current Workspace Role
+
diff --git a/packages/nc-gui/components/roles/Selector.vue b/packages/nc-gui/components/roles/Selector.vue
index 3258ec7337..6e300d1892 100644
--- a/packages/nc-gui/components/roles/Selector.vue
+++ b/packages/nc-gui/components/roles/Selector.vue
@@ -1,4 +1,5 @@