Merge pull request 'only undo and save buttons are disabled until data changed now' (#605) from 2881-accounts_accounts_buttons_refactor into dev
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #605
Reviewed-by: Joan Sanchez <joan@verdnatura.es>
This commit is contained in:
Joan Sanchez 2021-04-16 08:38:46 +00:00
commit 87ea8078da
1 changed files with 1 additions and 4 deletions

View File

@ -58,24 +58,21 @@
label="Save"> label="Save">
</vn-submit> </vn-submit>
<vn-button <vn-button
disabled="!watcher.dataChanged()"
label="Synchronize all" label="Synchronize all"
ng-click="$ctrl.onSynchronizeAll()"> ng-click="$ctrl.onSynchronizeAll()">
</vn-button> </vn-button>
<vn-button <vn-button
disabled="!watcher.dataChanged()"
label="Synchronize user" label="Synchronize user"
ng-click="syncUser.show()"> ng-click="syncUser.show()">
</vn-button> </vn-button>
<vn-button <vn-button
disabled="!watcher.dataChanged()"
label="Synchronize roles" label="Synchronize roles"
ng-click="$ctrl.onSynchronizeRoles()"> ng-click="$ctrl.onSynchronizeRoles()">
</vn-button> </vn-button>
<vn-button <vn-button
disabled="!watcher.dataChanged()"
class="cancel" class="cancel"
label="Undo changes" label="Undo changes"
disabled="!watcher.dataChanged()"
ng-click="watcher.loadOriginalData()"> ng-click="watcher.loadOriginalData()">
</vn-button> </vn-button>
</vn-button-bar> </vn-button-bar>