1
- import { Component , ViewChild , Injector , Output , EventEmitter , ElementRef , OnInit } from '@angular/core' ;
1
+ import { Component , ViewChild , Injector , Output , EventEmitter , ElementRef } from '@angular/core' ;
2
2
import { ModalDirective } from 'ngx-bootstrap' ;
3
- import { RoleServiceProxy , ListResultDtoOfPermissionDto , GetRoleForEditOutput , RoleDto } from '@shared/service-proxies/service-proxies' ;
3
+ import { RoleServiceProxy , GetRoleForEditOutput , RoleDto } from '@shared/service-proxies/service-proxies' ;
4
4
import { AppComponentBase } from '@shared/app-component-base' ;
5
5
import { finalize } from 'rxjs/operators' ;
6
6
7
7
@Component ( {
8
8
selector : 'edit-role-modal' ,
9
9
templateUrl : './edit-role.component.html'
10
10
} )
11
- export class EditRoleComponent extends AppComponentBase implements OnInit {
11
+ export class EditRoleComponent extends AppComponentBase {
12
12
@ViewChild ( 'editRoleModal' ) modal : ModalDirective ;
13
13
@ViewChild ( 'modalContent' ) modalContent : ElementRef ;
14
14
15
15
active : boolean = false ;
16
16
saving : boolean = false ;
17
17
18
- //permissions: ListResultDtoOfPermissionDto = null;
19
18
model : GetRoleForEditOutput = null ;
20
19
21
20
@Output ( ) modalSave : EventEmitter < any > = new EventEmitter < any > ( ) ;
@@ -26,13 +25,6 @@ export class EditRoleComponent extends AppComponentBase implements OnInit {
26
25
super ( injector ) ;
27
26
}
28
27
29
- //ngOnInit(): void {
30
- // this._roleService.getAllPermissions()
31
- // .subscribe((permissions: ListResultDtoOfPermissionDto) => {
32
- // this.permissions = permissions;
33
- // });
34
- //}
35
-
36
28
show ( id : number ) : void {
37
29
this . _roleService . getRoleForEdit ( id )
38
30
. pipe ( finalize ( ( ) => {
0 commit comments