entry module refactors

This commit is contained in:
Carlos Jimenez Ruiz 2020-12-14 17:35:32 +01:00
parent e1a77b7d43
commit 8e13fa7852
2 changed files with 17 additions and 4 deletions

View File

@ -110,7 +110,14 @@
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Save"></vn-submit>
<vn-button label="Undo changes" ng-if="watcher.dataChanged()" ng-click="watcher.loadOriginalData()"></vn-button>
<vn-submit
ng-if="watcher.dataChanged()"
label="Save">
</vn-submit>
<vn-button
label="Undo changes"
ng-if="watcher.dataChanged()"
ng-click="watcher.loadOriginalData()">
</vn-button>
</vn-button-bar>
</form>

View File

@ -50,7 +50,13 @@
</vn-horizontal>
</vn-card>
<vn-button-bar>
<vn-submit label="Create"></vn-submit>
<vn-button ui-sref="entry.index" label="Cancel"></vn-button>
<vn-submit
ng-if="watcher.dataChanged()"
label="Create">
</vn-submit>
<vn-button
ui-sref="entry.index"
label="Cancel">
</vn-button>
</vn-button-bar>
</form>