Skip to content

Commit fe7b0d0

Browse files
committed
removed unused variable and followed abp's localize pipe using convention
1 parent 2841083 commit fe7b0d0

File tree

2 files changed

+8
-10
lines changed

2 files changed

+8
-10
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export class EditRoleDialogComponent extends AppComponentBase
3434
grantedPermissionNames: string[] = [];
3535
checkedPermissionsMap: { [key: string]: boolean } = {};
3636
defaultPermissionCheckedStatus = true;
37-
permissionName = '';
3837
saving = false;
3938

4039
constructor(
@@ -57,7 +56,6 @@ export class EditRoleDialogComponent extends AppComponentBase
5756
this.permissions.push(permission);
5857
});
5958
this.grantedPermissionNames = result.grantedPermissionNames;
60-
this.permissionName = result.role.name;
6159
this.setInitialPermissionsStatus();
6260
});
6361
}

angular/src/app/roles/roles.component.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="card main-content">
44
<div class="header">
55
<h2>
6-
{{ 'Roles' | localize }}
6+
{{ "Roles" | localize }}
77
</h2>
88
<ul class="header-dropdown m-r--5">
99
<li>
@@ -13,7 +13,7 @@ <h2>
1313
<mat-menu #headerMenu="matMenu">
1414
<button mat-menu-item (click)="refresh()">
1515
<mat-icon>refresh</mat-icon>
16-
<span>{{ 'Refresh' | localize }}</span>
16+
<span>{{ "Refresh" | localize }}</span>
1717
</button>
1818
</mat-menu>
1919
</li>
@@ -23,25 +23,25 @@ <h2>
2323
<table class="table table-hover table-striped" [busy]="isTableLoading">
2424
<thead>
2525
<tr>
26-
<th>{{ 'Actions' | localize }}</th>
27-
<th>{{ 'RoleName' | localize }}</th>
28-
<th>{{ 'DisplayName' | localize }}</th>
26+
<th>{{ "Actions" | localize }}</th>
27+
<th>{{ "RoleName" | localize }}</th>
28+
<th>{{ "DisplayName" | localize }}</th>
2929
</tr>
3030
</thead>
3131
<tbody>
32-
<tr *ngFor="let role of roles | paginate: { id: 'server', itemsPerPage: pageSize, currentPage: pageNumber, totalItems: totalItems }">
32+
<tr *ngFor="let role of roles | paginate: { id: "server", itemsPerPage: pageSize, currentPage: pageNumber, totalItems: totalItems }">
3333
<td>
3434
<button mat-icon-button [matMenuTriggerFor]="actionsMenu">
3535
<mat-icon>menu</mat-icon>
3636
</button>
3737
<mat-menu #actionsMenu="matMenu">
3838
<button mat-menu-item (click)="editRole(role)">
3939
<mat-icon>edit</mat-icon>
40-
<span>{{ 'Edit' | localize }}</span>
40+
<span>{{ "Edit" | localize }}</span>
4141
</button>
4242
<button mat-menu-item (click)="delete(role)">
4343
<mat-icon>delete</mat-icon>
44-
<span>{{ 'Delete' | localize }}</span>
44+
<span>{{ "Delete" | localize }}</span>
4545
</button>
4646
</mat-menu>
4747
</td>

0 commit comments

Comments
 (0)