|
|
@ -85,7 +85,6 @@ const saveUser = async () => { |
|
|
|
project_id: project.value.id, |
|
|
|
project_id: project.value.id, |
|
|
|
projectName: project.value.title, |
|
|
|
projectName: project.value.title, |
|
|
|
}) |
|
|
|
}) |
|
|
|
emit('reload') |
|
|
|
|
|
|
|
emit('closed') |
|
|
|
emit('closed') |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const res = await $api.auth.projectUserAdd(project.value.id, { |
|
|
|
const res = await $api.auth.projectUserAdd(project.value.id, { |
|
|
@ -96,6 +95,7 @@ const saveUser = async () => { |
|
|
|
}) |
|
|
|
}) |
|
|
|
usersData.invitationToken = res.invite_token |
|
|
|
usersData.invitationToken = res.invite_token |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
emit('reload') |
|
|
|
message.success('Successfully updated the user details') |
|
|
|
message.success('Successfully updated the user details') |
|
|
|
} catch (e: any) { |
|
|
|
} catch (e: any) { |
|
|
|
console.error(e) |
|
|
|
console.error(e) |
|
|
|