mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-28817] - update copy for vault premium spotlight (#17667)
* update copy for vault premium spotlight * remove unecessary observable * fix logic
This commit is contained in:
@@ -5821,11 +5821,11 @@
|
||||
"upgradeToPremium": {
|
||||
"message": "Upgrade to Premium"
|
||||
},
|
||||
"upgradeCompleteSecurity": {
|
||||
"message": "Upgrade for complete security"
|
||||
"unlockAdvancedSecurity": {
|
||||
"message": "Unlock advanced security features"
|
||||
},
|
||||
"premiumGivesMoreTools": {
|
||||
"message": "Premium gives you more tools to stay secure, work efficiently, and stay in control."
|
||||
"unlockAdvancedSecurityDesc": {
|
||||
"message": "A Premium subscription gives you more tools to stay secure and in control"
|
||||
},
|
||||
"explorePremium": {
|
||||
"message": "Explore Premium"
|
||||
|
||||
@@ -44,8 +44,8 @@
|
||||
<ng-container slot="above-scroll-area">
|
||||
<ng-container *ngIf="showPremiumSpotlight$ | async">
|
||||
<bit-spotlight
|
||||
[title]="'upgradeCompleteSecurity' | i18n"
|
||||
[subtitle]="'premiumGivesMoreTools' | i18n"
|
||||
[title]="'unlockAdvancedSecurity' | i18n"
|
||||
[subtitle]="'unlockAdvancedSecurityDesc' | i18n"
|
||||
[buttonText]="'explorePremium' | i18n"
|
||||
(onButtonClick)="showPremiumDialog()"
|
||||
(onDismiss)="dismissVaultNudgeSpotlight(NudgeType.PremiumUpgrade)"
|
||||
|
||||
@@ -165,15 +165,14 @@ export class VaultV2Component implements OnInit, AfterViewInit, OnDestroy {
|
||||
|
||||
protected showPremiumSpotlight$ = combineLatest([
|
||||
this.showPremiumNudgeSpotlight$,
|
||||
this.showEmptyVaultSpotlight$,
|
||||
this.showHasItemsVaultSpotlight$,
|
||||
this.hasPremium$,
|
||||
this.cipherCount$,
|
||||
this.accountAgeInDays$,
|
||||
]).pipe(
|
||||
map(
|
||||
([showNudge, emptyVault, hasItems, hasPremium, count, age]) =>
|
||||
showNudge && !emptyVault && !hasItems && !hasPremium && count >= 5 && age >= 7,
|
||||
([showPremiumNudge, showHasItemsNudge, hasPremium, count, age]) =>
|
||||
showPremiumNudge && !showHasItemsNudge && !hasPremium && count >= 5 && age >= 7,
|
||||
),
|
||||
shareReplay({ bufferSize: 1, refCount: true }),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user