Added ACL to td-editable
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-08-27 11:23:39 +02:00
parent ac181bb845
commit f14b484faf
2 changed files with 6 additions and 2 deletions

View File

@ -71,7 +71,7 @@
{{::balance.userName}}
</span>
</vn-td>
<vn-td-editable disabled="balance.isInvoice" expand>
<vn-td-editable disabled="balance.isInvoice || !$ctrl.isAdministrative" expand>
<text>
<div ng-show="::balance.description">
<span
@ -89,7 +89,7 @@
</div>
</text>
<field>
<vn-textfield class="dense" vn-focus
<vn-textfield vn-acl="administrative" class="dense" vn-focus
ng-model="balance.description"
on-change="$ctrl.changeDescription(balance)">
</vn-textfield>

View File

@ -39,6 +39,10 @@ class Controller extends Section {
this.getBalances();
}
get isAdministrative() {
return this.aclService.hasAny(['administrative']);
}
getData() {
return this.$.model.applyFilter(null, {
clientId: this.$params.id,