Merge branch 'master' of ssh://git.verdnatura.es:/var/lib/git/salix
This commit is contained in:
commit
93c37ac964
|
@ -15,6 +15,7 @@ export const COMPONENT = {
|
||||||
this.submit = function() {
|
this.submit = function() {
|
||||||
if (!equalsObject(this.account, this.accountOld)) {
|
if (!equalsObject(this.account, this.accountOld)) {
|
||||||
this.client.modify = "WebAccess";
|
this.client.modify = "WebAccess";
|
||||||
|
this.account.id = this.client.id;
|
||||||
$http.put('/client/api/Accounts', this.account).then(
|
$http.put('/client/api/Accounts', this.account).then(
|
||||||
json => {
|
json => {
|
||||||
this.account = json.data;
|
this.account = json.data;
|
||||||
|
@ -53,9 +54,6 @@ export const COMPONENT = {
|
||||||
json => {
|
json => {
|
||||||
this.account = json.data;
|
this.account = json.data;
|
||||||
this.copyAccount();
|
this.copyAccount();
|
||||||
},
|
|
||||||
json => {
|
|
||||||
this.account = {id: clientId};
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue