Skip to content

Commit 50b5073

Browse files
authored
alias lodash funcs
1 parent 8dc59e3 commit 50b5073

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
} from '@angular/core';
88
import { finalize } from 'rxjs/operators';
99
import { BsModalRef } from 'ngx-bootstrap/modal';
10-
import { forEach, includes, map } from 'lodash-es';
10+
import { forEach as _forEach, includes as _includes, map as _map } from 'lodash-es';
1111
import { AppComponentBase } from '@shared/app-component-base';
1212
import {
1313
RoleServiceProxy,
@@ -52,15 +52,15 @@ export class EditRoleDialogComponent extends AppComponentBase
5252
}
5353

5454
setInitialPermissionsStatus(): void {
55-
map(this.permissions, (item) => {
55+
_map(this.permissions, (item) => {
5656
this.checkedPermissionsMap[item.name] = this.isPermissionChecked(
5757
item.name
5858
);
5959
});
6060
}
6161

6262
isPermissionChecked(permissionName: string): boolean {
63-
return includes(this.grantedPermissionNames, permissionName);
63+
return _includes(this.grantedPermissionNames, permissionName);
6464
}
6565

6666
onPermissionChange(permission: PermissionDto, $event) {
@@ -69,7 +69,7 @@ export class EditRoleDialogComponent extends AppComponentBase
6969

7070
getCheckedPermissions(): string[] {
7171
const permissions: string[] = [];
72-
forEach(this.checkedPermissionsMap, function (value, key) {
72+
_forEach(this.checkedPermissionsMap, function (value, key) {
7373
if (value) {
7474
permissions.push(key);
7575
}

0 commit comments

Comments
 (0)