From db9061d120441a6f7cff5aba72e97ee65fef87a6 Mon Sep 17 00:00:00 2001 From: Jordan Aasen <166539328+jaasen-livefront@users.noreply.github.com> Date: Thu, 11 Sep 2025 12:15:29 -0700 Subject: [PATCH] [PM-25633] - [Defect] Fix premium badge in totp (#16373) * fixes to premium upgrade * revert change to dialog * handle premium upgrade prompt redirect in AC * use new input/output api --- .../billing/app/accounts/premium.component.html | 2 +- .../organizations/collections/vault.component.ts | 6 ++++++ .../premium-badge/premium-badge.component.ts | 14 +++++++++++--- .../login-credentials-view.component.html | 2 +- .../login-credentials-view.component.ts | 4 ++-- 5 files changed, 21 insertions(+), 7 deletions(-) diff --git a/apps/desktop/src/billing/app/accounts/premium.component.html b/apps/desktop/src/billing/app/accounts/premium.component.html index d88602bed1..c8179c6e48 100644 --- a/apps/desktop/src/billing/app/accounts/premium.component.html +++ b/apps/desktop/src/billing/app/accounts/premium.component.html @@ -61,7 +61,7 @@ > {{ "premiumPurchase" | i18n }} - +
`, imports: [BadgeModule, JslibModule], }) export class PremiumBadgeComponent { + /** Skip sending the premiumRequired message (default: false). */ + skipMessaging = input(false); + onClick = output(); + constructor(private messagingService: MessagingService) {} - premiumRequired() { + async promptForPremium() { + this.onClick.emit(); + if (this.skipMessaging()) { + return; + } this.messagingService.send("premiumRequired"); } } diff --git a/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html b/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html index bc10c6f701..d31f20f771 100644 --- a/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html +++ b/libs/vault/src/cipher-view/login-credentials/login-credentials-view.component.html @@ -124,7 +124,7 @@
{{ "verificationCodeTotp" | i18n }} - +