|
|
@ -1,5 +1,6 @@ |
|
|
|
<script lang="ts" setup> |
|
|
|
<script lang="ts" setup> |
|
|
|
import { onKeyStroke } from '@vueuse/core' |
|
|
|
import { onKeyStroke } from '@vueuse/core' |
|
|
|
|
|
|
|
import type { RoleLabels } from 'nocodb-sdk' |
|
|
|
import { OrderedWorkspaceRoles, WorkspaceUserRoles } from 'nocodb-sdk' |
|
|
|
import { OrderedWorkspaceRoles, WorkspaceUserRoles } from 'nocodb-sdk' |
|
|
|
import { extractSdkResponseErrorMsg, useWorkspace } from '#imports' |
|
|
|
import { extractSdkResponseErrorMsg, useWorkspace } from '#imports' |
|
|
|
import { validateEmail } from '~/utils/validation' |
|
|
|
import { validateEmail } from '~/utils/validation' |
|
|
@ -192,6 +193,8 @@ const onPaste = (e: ClipboardEvent) => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
inviteData.email = '' |
|
|
|
inviteData.email = '' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onRoleChange = (role: keyof typeof RoleLabels) => (inviteData.roles = role as WorkspaceUserRoles) |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<template> |
|
|
|
<template> |
|
|
@ -242,7 +245,7 @@ const onPaste = (e: ClipboardEvent) => { |
|
|
|
class="px-1 min-w-[152px] nc-invite-role-selector" |
|
|
|
class="px-1 min-w-[152px] nc-invite-role-selector" |
|
|
|
:role="inviteData.roles" |
|
|
|
:role="inviteData.roles" |
|
|
|
:roles="allowedRoles" |
|
|
|
:roles="allowedRoles" |
|
|
|
:on-role-change="(role) => (inviteData.roles = role as WorkspaceUserRoles)" |
|
|
|
:on-role-change="onRoleChange" |
|
|
|
:description="true" |
|
|
|
:description="true" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|