Browse Source

fix: switch to new API

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1752/head
Wing-Kam Wong 3 years ago
parent
commit
c43d4b79e4
  1. 11
      packages/nc-gui/components/auth/userManagement.vue

11
packages/nc-gui/components/auth/userManagement.vue

@ -612,16 +612,7 @@ export default {
}, },
async resendInvite(id) { async resendInvite(id) {
try { try {
await this.$axios.post('/admin/resendInvite/' + id, { await this.$api.auth.projectUserResendInvite(this.$route.params.project_id, id)
projectName: this.$store.getters['project/GtrProjectName']
}, {
headers: {
'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)
await this.loadUsers() await this.loadUsers()
} catch (e) { } catch (e) {

Loading…
Cancel
Save