1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

[SM-688] use dynamic-avatar in SM (#5203)

* make dynamic-avatar standalone; use in SM

* fix broken story
This commit is contained in:
Will Martin
2023-04-26 12:25:09 -04:00
committed by GitHub
parent cfc380c697
commit 95b1ea318c
5 changed files with 31 additions and 6 deletions

View File

@@ -2,9 +2,14 @@ import { Component, Input, OnDestroy } from "@angular/core";
import { Observable, Subject } from "rxjs";
import { AvatarUpdateService } from "@bitwarden/common/abstractions/account/avatar-update.service";
import { SharedModule } from "../shared";
type SizeTypes = "xlarge" | "large" | "default" | "small" | "xsmall";
@Component({
selector: "dynamic-avatar",
standalone: true,
imports: [SharedModule],
template: `<span [title]="title">
<bit-avatar
appStopClick

View File

@@ -121,6 +121,7 @@ import { SharedModule } from "./shared.module";
RegisterFormModule,
ProductSwitcherModule,
ChangeKdfModule,
DynamicAvatarComponent,
],
declarations: [
PremiumBadgeComponent,
@@ -145,7 +146,6 @@ import { SharedModule } from "./shared.module";
DeauthorizeSessionsComponent,
DeleteAccountComponent,
DomainRulesComponent,
DynamicAvatarComponent,
EmergencyAccessAddEditComponent,
EmergencyAccessAttachmentsComponent,
EmergencyAccessComponent,