mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 01:03:35 +00:00
[PM-25879][PM-25881] - [Defect] Premium badges missing reusable component (#16461)
* clean up premium badge component
* add provider to desktop settings
* rename prop.
* add provider to send component
* fix storybook
* fix test
* move dependency to new send dropdown component
* Revert "move dependency to new send dropdown component"
This reverts commit f134526279.
* remove hasPremium
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
<bit-label [appTextDrag]="totpCodeCopyObj?.totpCode">
|
||||
<div class="tw-flex tw-items-center tw-gap-3">
|
||||
{{ "verificationCodeTotp" | i18n }}
|
||||
<app-premium-badge [skipMessaging]="true" (onClick)="getPremium()"></app-premium-badge>
|
||||
<app-premium-badge [organizationId]="cipher.organizationId"></app-premium-badge>
|
||||
</div>
|
||||
</bit-label>
|
||||
<input
|
||||
|
||||
@@ -107,10 +107,6 @@ export class LoginCredentialsViewComponent implements OnChanges {
|
||||
}
|
||||
}
|
||||
|
||||
async getPremium() {
|
||||
await this.premiumUpgradeService.promptForPremium(this.cipher.organizationId);
|
||||
}
|
||||
|
||||
async pwToggleValue(passwordVisible: boolean) {
|
||||
this.passwordRevealed = passwordVisible;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user