|
|
@ -536,9 +536,14 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async rensendInvite(id) { |
|
|
|
async rensendInvite(id) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
await this.$axios.post('/admin/resendInvite/' + id, null, { |
|
|
|
await this.$axios.post('/admin/resendInvite/' + id, { |
|
|
|
|
|
|
|
projectName: this.$store.getters['project/GtrProjectName'], |
|
|
|
|
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
params: { |
|
|
|
|
|
|
|
project_id: this.$route.params.project_id |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.$toast.success('Invite email sent successfully').goAway(3000); |
|
|
|
this.$toast.success('Invite email sent successfully').goAway(3000); |
|
|
@ -620,7 +625,11 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
async inviteUser(email) { |
|
|
|
async inviteUser(email) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
await this.$axios.post('/admin', {email, project_id: this.$route.params.project_id}, { |
|
|
|
await this.$axios.post('/admin', { |
|
|
|
|
|
|
|
email, |
|
|
|
|
|
|
|
project_id: this.$route.params.project_id, |
|
|
|
|
|
|
|
projectName: this.$store.getters['project/GtrProjectName'] |
|
|
|
|
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|
} |
|
|
|
} |
|
|
@ -646,7 +655,8 @@ export default { |
|
|
|
await this.$axios.put('/admin/' + this.selectedUser.id, { |
|
|
|
await this.$axios.put('/admin/' + this.selectedUser.id, { |
|
|
|
roles: this.selectedUser.roles, |
|
|
|
roles: this.selectedUser.roles, |
|
|
|
email: this.selectedUser.email, |
|
|
|
email: this.selectedUser.email, |
|
|
|
project_id: this.$route.params.project_id |
|
|
|
project_id: this.$route.params.project_id, |
|
|
|
|
|
|
|
projectName: this.$store.getters['project/GtrProjectName'] |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
@ -655,7 +665,8 @@ export default { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
data = await this.$axios.post('/admin', { |
|
|
|
data = await this.$axios.post('/admin', { |
|
|
|
...this.selectedUser, |
|
|
|
...this.selectedUser, |
|
|
|
project_id: this.$route.params.project_id |
|
|
|
project_id: this.$route.params.project_id, |
|
|
|
|
|
|
|
projectName: this.$store.getters['project/GtrProjectName'] |
|
|
|
}, { |
|
|
|
}, { |
|
|
|
headers: { |
|
|
|
headers: { |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|
'xc-auth': this.$store.state.users.token |
|
|
|