Browse Source

fix: role change issue and role access

pull/6576/head
sreehari jayaraj 1 year ago
parent
commit
3ffdd7d47f
  1. 1
      packages/nc-gui/components/workspace/CollaboratorsList.vue
  2. 2
      packages/nc-gui/components/workspace/InviteSection.vue

1
packages/nc-gui/components/workspace/CollaboratorsList.vue

@ -83,6 +83,7 @@ onMounted(async () => {
<RolesSelector <RolesSelector
:role="collab.roles" :role="collab.roles"
:roles="accessibleRoles" :roles="accessibleRoles"
:description="false"
:on-role-change="(role: WorkspaceUserRoles) => updateCollaborator(collab, role)" :on-role-change="(role: WorkspaceUserRoles) => updateCollaborator(collab, role)"
/> />
</template> </template>

2
packages/nc-gui/components/workspace/InviteSection.vue

@ -44,7 +44,7 @@ const insertOrUpdateString = (str: string) => {
const emailInputValidation = (input: string): boolean => { const emailInputValidation = (input: string): boolean => {
if (!input.length) { if (!input.length) {
emailValidation.isError = true emailValidation.isError = true
emailValidation.message = 'Email Should Not Be Empty' emailValidation.message = 'Email should not be empty'
return false return false
} }
if (!validateEmail(input.trim())) { if (!validateEmail(input.trim())) {

Loading…
Cancel
Save