Skip to content

Commit 3463c20

Browse files
Removed unused lines
1 parent e54ac43 commit 3463c20

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

angular/src/app/roles/edit-role/edit-role.component.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
import { Component, ViewChild, Injector, Output, EventEmitter, ElementRef, OnInit } from '@angular/core';
1+
import { Component, ViewChild, Injector, Output, EventEmitter, ElementRef } from '@angular/core';
22
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';
44
import { AppComponentBase } from '@shared/app-component-base';
55
import { finalize } from 'rxjs/operators';
66

77
@Component({
88
selector: 'edit-role-modal',
99
templateUrl: './edit-role.component.html'
1010
})
11-
export class EditRoleComponent extends AppComponentBase implements OnInit {
11+
export class EditRoleComponent extends AppComponentBase {
1212
@ViewChild('editRoleModal') modal: ModalDirective;
1313
@ViewChild('modalContent') modalContent: ElementRef;
1414

1515
active: boolean = false;
1616
saving: boolean = false;
1717

18-
//permissions: ListResultDtoOfPermissionDto = null;
1918
model: GetRoleForEditOutput = null;
2019

2120
@Output() modalSave: EventEmitter<any> = new EventEmitter<any>();
@@ -26,13 +25,6 @@ export class EditRoleComponent extends AppComponentBase implements OnInit {
2625
super(injector);
2726
}
2827

29-
//ngOnInit(): void {
30-
// this._roleService.getAllPermissions()
31-
// .subscribe((permissions: ListResultDtoOfPermissionDto) => {
32-
// this.permissions = permissions;
33-
// });
34-
//}
35-
3628
show(id: number): void {
3729
this._roleService.getRoleForEdit(id)
3830
.pipe(finalize(() => {

0 commit comments

Comments
 (0)