1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-27 04:03:00 +02:00
bitwarden-browser/apps/browser/src/auth/popup/account-switching/current-account.component.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

21 lines
555 B
TypeScript
Raw Normal View History

import { Component } from "@angular/core";
import { Router } from "@angular/router";
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
@Component({
selector: "app-current-account",
templateUrl: "current-account.component.html",
})
export class CurrentAccountComponent {
constructor(private accountService: AccountService, private router: Router) {}
get currentAccount$() {
return this.accountService.activeAccount$;
}
currentAccountClicked() {
this.router.navigate(["/account-switcher"]);
}
}