mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-4254] Delete permissions button is now keyboard interact-able (enter key) (#8216)
This commit is contained in:
@@ -61,6 +61,7 @@
|
|||||||
<button mat-icon-button
|
<button mat-icon-button
|
||||||
[disabled]="entry.row.obj.readonly"
|
[disabled]="entry.row.obj.readonly"
|
||||||
(click)="removePermission($event, entry.row.obj)"
|
(click)="removePermission($event, entry.row.obj)"
|
||||||
|
(keydown.enter)="removePermission($event, entry.row.obj)"
|
||||||
[attr.data-automation-id]="'adf-delete-permission-button-' + entry.row.obj.authorityId"
|
[attr.data-automation-id]="'adf-delete-permission-button-' + entry.row.obj.authorityId"
|
||||||
[attr.aria-label]="'PERMISSION_MANAGER.ACTION.DELETE' | translate">
|
[attr.aria-label]="'PERMISSION_MANAGER.ACTION.DELETE' | translate">
|
||||||
<mat-icon>delete_outline</mat-icon>
|
<mat-icon>delete_outline</mat-icon>
|
||||||
|
@@ -75,7 +75,7 @@ export class PermissionContainerComponent implements OnChanges {
|
|||||||
this.updateAll.emit(role);
|
this.updateAll.emit(role);
|
||||||
}
|
}
|
||||||
|
|
||||||
removePermission(event: MouseEvent, permissionRow: PermissionDisplayModel) {
|
removePermission(event: Event, permissionRow: PermissionDisplayModel) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.delete.emit(permissionRow);
|
this.delete.emit(permissionRow);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user