mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 06:13:38 +00:00
[PM-23722] remove previous change for the account security badge (#15739)
This commit is contained in:
@@ -10,16 +10,7 @@
|
|||||||
<bit-item>
|
<bit-item>
|
||||||
<a bit-item-content routerLink="/account-security">
|
<a bit-item-content routerLink="/account-security">
|
||||||
<i slot="start" class="bwi bwi-lock" aria-hidden="true"></i>
|
<i slot="start" class="bwi bwi-lock" aria-hidden="true"></i>
|
||||||
<div class="tw-flex tw-items-center tw-justify-center">
|
{{ "accountSecurity" | i18n }}
|
||||||
<p class="tw-pr-2">{{ "accountSecurity" | i18n }}</p>
|
|
||||||
<span
|
|
||||||
*ngIf="showAcctSecurityNudge$ | async"
|
|
||||||
bitBadge
|
|
||||||
variant="notification"
|
|
||||||
[attr.aria-label]="'nudgeBadgeAria' | i18n"
|
|
||||||
>1</span
|
|
||||||
>
|
|
||||||
</div>
|
|
||||||
<i slot="end" class="bwi bwi-angle-right" aria-hidden="true"></i>
|
<i slot="end" class="bwi bwi-angle-right" aria-hidden="true"></i>
|
||||||
</a>
|
</a>
|
||||||
</bit-item>
|
</bit-item>
|
||||||
|
|||||||
@@ -50,12 +50,6 @@ export class SettingsV2Component implements OnInit {
|
|||||||
shareReplay({ bufferSize: 1, refCount: true }),
|
shareReplay({ bufferSize: 1, refCount: true }),
|
||||||
);
|
);
|
||||||
|
|
||||||
protected showAcctSecurityNudge$: Observable<boolean> = this.authenticatedAccount$.pipe(
|
|
||||||
switchMap((account) =>
|
|
||||||
this.nudgesService.showNudgeBadge$(NudgeType.AccountSecurity, account.id),
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
showDownloadBitwardenNudge$: Observable<boolean> = this.authenticatedAccount$.pipe(
|
showDownloadBitwardenNudge$: Observable<boolean> = this.authenticatedAccount$.pipe(
|
||||||
switchMap((account) =>
|
switchMap((account) =>
|
||||||
this.nudgesService.showNudgeBadge$(NudgeType.DownloadBitwarden, account.id),
|
this.nudgesService.showNudgeBadge$(NudgeType.DownloadBitwarden, account.id),
|
||||||
|
|||||||
@@ -160,7 +160,6 @@ export class NudgesService {
|
|||||||
hasActiveBadges$(userId: UserId): Observable<boolean> {
|
hasActiveBadges$(userId: UserId): Observable<boolean> {
|
||||||
// Add more nudge types here if they have the settings badge feature
|
// Add more nudge types here if they have the settings badge feature
|
||||||
const nudgeTypes = [
|
const nudgeTypes = [
|
||||||
NudgeType.AccountSecurity,
|
|
||||||
NudgeType.EmptyVaultNudge,
|
NudgeType.EmptyVaultNudge,
|
||||||
NudgeType.DownloadBitwarden,
|
NudgeType.DownloadBitwarden,
|
||||||
NudgeType.AutofillNudge,
|
NudgeType.AutofillNudge,
|
||||||
|
|||||||
Reference in New Issue
Block a user