Class AdminImpersonateListComponent

Is responsible for displaying, filtering, loading and selecting users.

Hierarchy

  • AbstractUserAssignListComponent
    • AdminImpersonateListComponent

Constructors

Properties

_selectedUser$: ReplaySubject<string>

Stream of selected user with his value that we can subscribe to like the observable.

_userListService: UserListService
initiallySelectedUser: UserValue

The user that is initially selected, or undefined if none is

negativeRoles: string[] | RolesObject
roles: string[] | RolesObject
SEARCH_DEBOUNCE_TIME: number
searchUserControl: FormControl<any>
users$: Observable<UserListItem[]>

UserValue array stream, that represents users loading from backend.

userSelected: EventEmitter<UserValue>

Emit selected user to parent component.

viewport: CdkVirtualScrollViewport
ɵcmp: unknown
ɵfac: unknown

Accessors

  • get loading(): boolean
  • Returns boolean

  • get selectedUser$(): Observable<string>
  • ID of the currently selected user

    Returns Observable<string>

Methods

  • Marks user as selected in users list.

    Parameters

    • selectedUser: UserListItem

      Current select user value.

    Returns void

  • Returns void

  • Returns void

  • On initialize component set value to stream selectedUser with preselected user. Observes search user control stream on value change.

    Returns void

  • Sets current user to the selected user.

    Emit selected user to parent component.

    Marks selected user in users list.

    Parameters

    • selectedUser: UserListItem

      [UserValue]UserValue

    Returns void

  • Parameters

    • index: number
    • item: UserValue

    Returns any