declare permission property to check from of node (#302)

This commit is contained in:
Cilibiu Bogdan
2018-04-13 09:27:46 +03:00
committed by Denys Vuika
parent 31ad535348
commit d5d66f0001
3 changed files with 29 additions and 22 deletions

View File

@@ -64,7 +64,7 @@
<button
mat-menu-item
*ngIf="permission.check(documentList.selection, ['delete'])"
*ngIf="permission.check(documentList.selection, ['delete'], { target: 'allowableOperationsOnTarget' })"
[app-move-node]="documentList.selection">
<mat-icon color="primary">library_books</mat-icon>
<span>{{ 'APP.ACTIONS.MOVE' | translate }}</span>
@@ -81,7 +81,7 @@
<button
mat-menu-item
*ngIf="permission.check(documentList.selection, ['delete'])"
*ngIf="permission.check(documentList.selection, ['delete'], { target: 'allowableOperationsOnTarget' })"
[app-delete-node]="documentList.selection">
<mat-icon color="primary">delete</mat-icon>
<span>{{ 'APP.ACTIONS.DELETE' | translate }}</span>