[ADF-2560] Empty template for nodes without permissions (#3171)

* No permissions template

* Unit test added

* custom template

* template selector changed

* tslint error fix
This commit is contained in:
Alex Bolboșenco
2018-04-17 22:22:48 +03:00
committed by Eugenio Romano
parent 06d85aa8d3
commit cebe0f57f5
8 changed files with 128 additions and 2 deletions

View File

@@ -17,6 +17,18 @@ Shows node permissions as a table.
</adf-permission-list>
```
If permissions list is empty, `No permissions` text is displayed,
or custom template can be added:
```html
<adf-permission-list [nodeId]="nodeId">
<adf-no-permission-template>
Custom no permission template!
</adf-no-permission-template>
</adf-permission-list>
```
### Properties
| Name | Type | Default value | Description |