Browse Source

refactor(permission-management): change a method name

pull/4798/head
mehmet-erim 6 years ago
parent
commit
cfab52042c
  1. 6
      npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts

6
npm/ng-packs/packages/permission-management/src/lib/components/permission-management.component.ts

@ -233,7 +233,7 @@ export class PermissionManagementComponent
)
.pipe(
switchMap(() =>
this.isFetchAppConfigNecessary() ? this.store.dispatch(GetAppConfiguration) : of(null),
this.shouldFetchAppConfig() ? this.store.dispatch(GetAppConfiguration) : of(null),
),
finalize(() => (this.modalBusy = false)),
)
@ -275,7 +275,7 @@ export class PermissionManagementComponent
);
}
isFetchAppConfigNecessary() {
shouldFetchAppConfig() {
const currentUser = this.store.selectSnapshot(
ConfigState.getOne('currentUser'),
) as ApplicationConfiguration.CurrentUser;
@ -287,6 +287,8 @@ export class PermissionManagementComponent
if (this.providerName === 'U') {
return currentUser.id === this.providerKey;
}
return false;
}
}

Loading…
Cancel
Save