entry module refactors

This commit is contained in:
Carlos Jimenez Ruiz 2020-12-15 16:53:56 +01:00
parent eb19bce1ba
commit b071bfd229
2 changed files with 7 additions and 5 deletions

View File

@ -111,12 +111,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

@ -51,12 +51,13 @@
</vn-card>
<vn-button-bar>
<vn-submit
ng-if="watcher.dataChanged()"
disabled="!watcher.dataChanged()"
label="Create">
</vn-submit>
<vn-button
ui-sref="entry.index"
label="Cancel">
class="cancel"
label="Cancel"
ui-sref="entry.index"></vn-button>
</vn-button>
</vn-button-bar>
</form>