|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<script setup lang="ts"> |
|
|
|
|
import { OrgUserRoles } from 'nocodb-sdk' |
|
|
|
|
import type { RequestParams } from 'nocodb-sdk' |
|
|
|
|
import type { ProjectUserReqType, RequestParams } from 'nocodb-sdk' |
|
|
|
|
import { |
|
|
|
|
extractSdkResponseErrorMsg, |
|
|
|
|
message, |
|
|
|
@ -82,7 +82,7 @@ const inviteUser = async (user: User) => {
|
|
|
|
|
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 |
|
|
|
|
message.success(t('msg.success.userAddedToProject')) |
|
|
|
|