|
|
|
@ -1,7 +1,7 @@ |
|
|
|
import { ListService, PagedAndSortedResultRequestDto, PagedResultDto } from '@abp/ng.core'; |
|
|
|
import { IdentityRoleDto, IdentityRoleService } from '@abp/ng.identity/proxy'; |
|
|
|
import { ePermissionManagementComponents } from '@abp/ng.permission-management'; |
|
|
|
import { Confirmation, ConfirmationService } from '@abp/ng.theme.shared'; |
|
|
|
import {Confirmation, ConfirmationService, ToasterService} from '@abp/ng.theme.shared'; |
|
|
|
import { |
|
|
|
EXTENSIONS_IDENTIFIER, |
|
|
|
FormPropData, |
|
|
|
@ -47,6 +47,7 @@ export class RolesComponent implements OnInit { |
|
|
|
constructor( |
|
|
|
public readonly list: ListService<PagedAndSortedResultRequestDto>, |
|
|
|
protected confirmationService: ConfirmationService, |
|
|
|
private toasterService: ToasterService, |
|
|
|
protected injector: Injector, |
|
|
|
protected service: IdentityRoleService, |
|
|
|
) {} |
|
|
|
@ -100,6 +101,7 @@ export class RolesComponent implements OnInit { |
|
|
|
}) |
|
|
|
.subscribe((status: Confirmation.Status) => { |
|
|
|
if (status === Confirmation.Status.confirm) { |
|
|
|
this.toasterService.success('AbpSettingManagement::SuccessfullySaved'); |
|
|
|
this.service.delete(id).subscribe(() => this.list.get()); |
|
|
|
} |
|
|
|
}); |
|
|
|
|