mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
rename old hasPermission as allowableOperation and introduce the real hasPermissions (#4294)
This commit is contained in:
@@ -44,7 +44,7 @@ class TestComponent {
|
||||
|
||||
@Component({
|
||||
template: `
|
||||
<div id="delete-component" [adf-node-permission]="selection"
|
||||
<div id="delete-component" [adf-check-allowable-operation]="selection"
|
||||
[adf-delete]="selection"
|
||||
(delete)="onDelete($event)">
|
||||
</div>`
|
||||
@@ -335,7 +335,7 @@ describe('NodeDeleteDirective', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('should not enable the button if adf-node-permission is present', (done) => {
|
||||
it('should not enable the button if adf-check-allowable-operation is present', (done) => {
|
||||
elementWithPermissions.nativeElement.disabled = false;
|
||||
componentWithPermissions.selection = [];
|
||||
|
||||
|
Reference in New Issue
Block a user