order module refactor

This commit is contained in:
Carlos Jimenez Ruiz 2020-12-15 16:16:02 +01:00
parent 1ba83e7741
commit 6f29dabec4
2 changed files with 11 additions and 3 deletions

View File

@ -67,12 +67,13 @@
</vn-card>
<vn-button-bar>
<vn-submit
ng-if="watcher.dataChanged()"
disabled="!watcher.dataChanged()"
label="Save">
</vn-submit>
<vn-button
class="cancel"
label="Undo changes"
ng-if="watcher.dataChanged()"
disabled="!watcher.dataChanged()"
ng-click="watcher.loadOriginalData()">
</vn-button>
</vn-button-bar>

View File

@ -3,7 +3,14 @@
<vn-order-create-card vn-id="card" on-save=""></vn-order-create-card>
</vn-card>
<vn-button-bar>
<vn-submit ng-click="$ctrl.onSubmit()" label="Create">
<vn-submit
ng-click="$ctrl.onSubmit()"
label="Create">
</vn-submit>
<vn-button
class="cancel"
label="Cancel"
ui-sref="order.index">
</vn-button>
</vn-button-bar>
</div>