fix: refs #6432 account sync fixes
This commit is contained in:
parent
14eb14ad3f
commit
c2e295f777
|
@ -122,10 +122,10 @@ class Controller extends Descriptor {
|
||||||
}
|
}
|
||||||
|
|
||||||
onSync() {
|
onSync() {
|
||||||
let params = {
|
const params = {force: true};
|
||||||
password: this.syncPassword,
|
if (this.shouldSyncPassword)
|
||||||
force: true
|
params.password = this.syncPassword;
|
||||||
};
|
|
||||||
return this.$http.patch(`Accounts/${this.user.name}/sync`, params)
|
return this.$http.patch(`Accounts/${this.user.name}/sync`, params)
|
||||||
.then(() => this.vnApp.showSuccess(this.$t('User synchronized!')));
|
.then(() => this.vnApp.showSuccess(this.$t('User synchronized!')));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue