create address fixed
This commit is contained in:
parent
013880cb0a
commit
d0432140d7
|
@ -3,9 +3,10 @@
|
||||||
url="/client/api/Addresses"
|
url="/client/api/Addresses"
|
||||||
id-field="id"
|
id-field="id"
|
||||||
data="$ctrl.address"
|
data="$ctrl.address"
|
||||||
|
save="post"
|
||||||
form="form">
|
form="form">
|
||||||
</vn-watcher>
|
</vn-watcher>
|
||||||
<form name="form" ng-submit="watcher.submitGo('clientCard.addresses')" pad-medium>
|
<form name="form" ng-submit="watcher.submitGo('clientCard.addresses.list')" pad-medium>
|
||||||
<vn-card >
|
<vn-card >
|
||||||
<vn-vertical pad-large>
|
<vn-vertical pad-large>
|
||||||
<vn-title>Address</vn-title>
|
<vn-title>Address</vn-title>
|
||||||
|
|
|
@ -94,7 +94,9 @@ export default class Watcher extends Component {
|
||||||
(resolve, reject) => this.noChanges(reject)
|
(resolve, reject) => this.noChanges(reject)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
let changedData = (this.$attrs.save && this.$attrs.save.toLowerCase() === 'post') ? this.copyInNewObject(this.data) : getModifiedData(this.data, this.orgData);
|
let changedData = (this.$attrs.save && this.$attrs.save.toLowerCase() === 'post')
|
||||||
|
? this.copyInNewObject(this.data)
|
||||||
|
: getModifiedData(this.data, this.orgData);
|
||||||
|
|
||||||
if (this.save && this.save.accept) {
|
if (this.save && this.save.accept) {
|
||||||
this.save.model = changedData; // this.copyInNewObject(changedData);
|
this.save.model = changedData; // this.copyInNewObject(changedData);
|
||||||
|
|
Loading…
Reference in New Issue