mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Import user always in update mode
This commit is contained in:
parent
3036a03aa6
commit
80d1478924
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ export default {
|
|||
if (!confirmed) return
|
||||
}
|
||||
|
||||
const data = formatFormData(this.form)
|
||||
var requestArgs = {}
|
||||
Object.assign(requestArgs, this.form)
|
||||
if (!requestArgs.delete) delete requestArgs.delete
|
||||
if (!requestArgs.update) delete requestArgs.update
|
||||
const data = formatFormData(requestArgs)
|
||||
api.post('users/import', data, { asFormData: true }).then(() => {
|
||||
// Reset all cached data related to users.
|
||||
this.$store.dispatch('RESET_CACHE_DATA', ['users', 'users_details', 'groups', 'permissions'])
|
||||
|
|
Loading…
Reference in a new issue