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}}
|
{{::balance.userName}}
|
||||||
</span>
|
</span>
|
||||||
</vn-td>
|
</vn-td>
|
||||||
<vn-td-editable disabled="balance.isInvoice" expand>
|
<vn-td-editable disabled="balance.isInvoice || !$ctrl.isAdministrative" expand>
|
||||||
<text>
|
<text>
|
||||||
<div ng-show="::balance.description">
|
<div ng-show="::balance.description">
|
||||||
<span
|
<span
|
||||||
|
@ -89,7 +89,7 @@
|
||||||
</div>
|
</div>
|
||||||
</text>
|
</text>
|
||||||
<field>
|
<field>
|
||||||
<vn-textfield class="dense" vn-focus
|
<vn-textfield vn-acl="administrative" class="dense" vn-focus
|
||||||
ng-model="balance.description"
|
ng-model="balance.description"
|
||||||
on-change="$ctrl.changeDescription(balance)">
|
on-change="$ctrl.changeDescription(balance)">
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
|
|
|
@ -39,6 +39,10 @@ class Controller extends Section {
|
||||||
this.getBalances();
|
this.getBalances();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
get isAdministrative() {
|
||||||
|
return this.aclService.hasAny(['administrative']);
|
||||||
|
}
|
||||||
|
|
||||||
getData() {
|
getData() {
|
||||||
return this.$.model.applyFilter(null, {
|
return this.$.model.applyFilter(null, {
|
||||||
clientId: this.$params.id,
|
clientId: this.$params.id,
|
||||||
|
|
Loading…
Reference in New Issue