1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 09:13:33 +00:00

add OnInit implementation to fix linting

This commit is contained in:
Nick Krantz
2024-08-13 08:41:11 -05:00
parent d93a46cbdd
commit 50adcacba3

View File

@@ -1,6 +1,6 @@
import { animate, state, style, transition, trigger } from "@angular/animations"; import { animate, state, style, transition, trigger } from "@angular/animations";
import { ConnectedPosition } from "@angular/cdk/overlay"; import { ConnectedPosition } from "@angular/cdk/overlay";
import { Component } from "@angular/core"; import { Component, OnInit } from "@angular/core";
import { Router } from "@angular/router"; import { Router } from "@angular/router";
import { combineLatest, firstValueFrom, map, Observable, switchMap } from "rxjs"; import { combineLatest, firstValueFrom, map, Observable, switchMap } from "rxjs";
@@ -51,7 +51,7 @@ type InactiveAccount = ActiveAccount & {
]), ]),
], ],
}) })
export class AccountSwitcherComponent { export class AccountSwitcherComponent implements OnInit {
activeAccount$: Observable<ActiveAccount | null>; activeAccount$: Observable<ActiveAccount | null>;
inactiveAccounts$: Observable<{ [userId: string]: InactiveAccount }>; inactiveAccounts$: Observable<{ [userId: string]: InactiveAccount }>;
authStatus = AuthenticationStatus; authStatus = AuthenticationStatus;