|
|
@ -1,6 +1,6 @@ |
|
|
|
<script setup lang="ts"> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { OrgUserRoles } from 'nocodb-sdk' |
|
|
|
import { OrgUserRoles } from 'nocodb-sdk' |
|
|
|
import type { RequestParams } from 'nocodb-sdk' |
|
|
|
import type { ProjectUserReqType, RequestParams } from 'nocodb-sdk' |
|
|
|
import { |
|
|
|
import { |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
message, |
|
|
|
message, |
|
|
@ -82,7 +82,7 @@ const inviteUser = async (user: User) => { |
|
|
|
user.roles = 'editor' |
|
|
|
user.roles = 'editor' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
await api.auth.projectUserAdd(project.value.id, user) |
|
|
|
await api.auth.projectUserAdd(project.value.id, user as ProjectUserReqType) |
|
|
|
|
|
|
|
|
|
|
|
// Successfully added user to project |
|
|
|
// Successfully added user to project |
|
|
|
message.success(t('msg.success.userAddedToProject')) |
|
|
|
message.success(t('msg.success.userAddedToProject')) |
|
|
|