Added ACL to td-editable
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
ac181bb845
commit
f14b484faf
|
@ -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>
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue