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-card>
<vn-button-bar> <vn-button-bar>
<vn-submit <vn-submit
ng-if="watcher.dataChanged()" disabled="!watcher.dataChanged()"
label="Save"> label="Save">
</vn-submit> </vn-submit>
<vn-button <vn-button
class="cancel"
label="Undo changes" label="Undo changes"
ng-if="watcher.dataChanged()" disabled="!watcher.dataChanged()"
ng-click="watcher.loadOriginalData()"> ng-click="watcher.loadOriginalData()">
</vn-button> </vn-button>
</vn-button-bar> </vn-button-bar>

View File

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