|
|
@ -23,7 +23,7 @@ import { User } from '@shared/models/user.model'; |
|
|
import { selectAuth } from '@core/auth/auth.selectors'; |
|
|
import { selectAuth } from '@core/auth/auth.selectors'; |
|
|
import { map } from 'rxjs/operators'; |
|
|
import { map } from 'rxjs/operators'; |
|
|
import { Authority } from '@shared/models/authority.enum'; |
|
|
import { Authority } from '@shared/models/authority.enum'; |
|
|
import { isDefinedAndNotNull, isUndefined } from '@core/utils'; |
|
|
import { isDefinedAndNotNull } from '@core/utils'; |
|
|
import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; |
|
|
import { EntityTableConfig } from '@home/models/entity/entities-table-config.models'; |
|
|
import { ActionNotificationShow } from '@app/core/notification/notification.actions'; |
|
|
import { ActionNotificationShow } from '@app/core/notification/notification.actions'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
import { TranslateService } from '@ngx-translate/core'; |
|
|
@ -64,7 +64,7 @@ export class UserComponent extends EntityComponent<User> { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
isUserCredentialPresent(): boolean { |
|
|
isUserCredentialPresent(): boolean { |
|
|
return this.entity && this.entity.additionalInfo && isDefinedAndNotNull(this.entity.additionalInfo.userCredentialsEnabled); |
|
|
return isDefinedAndNotNull(this.entity?.additionalInfo?.userCredentialsEnabled); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
buildForm(entity: User): UntypedFormGroup { |
|
|
buildForm(entity: User): UntypedFormGroup { |
|
|
|