fix zone descriptor
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Bernat Exposito Domenech 2020-06-02 10:17:46 +02:00
parent 546272cc3f
commit 3bfee6d0fd
3 changed files with 2 additions and 5 deletions

View File

@ -76,7 +76,7 @@
</vn-check>
</vn-td>
<vn-td shrink>{{entry.id}} </vn-td>
<vn-td shrink>{{entry.supplierName}}</vn-td>
<vn-td expand>{{entry.supplierName}}</vn-td>
<vn-td shrink>{{entry.ref}}</vn-td>
<vn-td shrink>{{entry.hb}}</vn-td>
<vn-td shrink>{{entry.freightValue | currency: 'EUR': 2}}</vn-td>

View File

@ -45,7 +45,7 @@
</vn-descriptor-content>
<vn-confirm
vn-id="deleteZone"
on-accept="$ctrl.onDeleteAccept()"
on-accept="$ctrl.deleteZone()"
message="This zone will be removed">
</vn-confirm>
<vn-confirm

View File

@ -27,9 +27,6 @@ class Controller extends Descriptor {
this.deleteZone();
});
}
onDeleteAccept() {
this.deleteZone();
}
deleteZone() {
return this.$http.post(`Zones/${this.id}/deleteZone`).then(() => {