mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[PM-23813] apply dismiss check when setting status inside nudge services addressing footer lag in FF. (#15639)
This commit is contained in:
@@ -74,7 +74,10 @@ export class AccountSecurityNudgeService extends DefaultSingleNudgeService {
|
|||||||
hasSpotlightDismissed: status.hasSpotlightDismissed || hideNudge,
|
hasSpotlightDismissed: status.hasSpotlightDismissed || hideNudge,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (isPinSet || biometricUnlockEnabled || hasOrgWithRemovePinPolicyOn) {
|
if (
|
||||||
|
(isPinSet || biometricUnlockEnabled || hasOrgWithRemovePinPolicyOn) &&
|
||||||
|
!status.hasSpotlightDismissed
|
||||||
|
) {
|
||||||
await this.setNudgeStatus(nudgeType, acctSecurityNudgeStatus, userId);
|
await this.setNudgeStatus(nudgeType, acctSecurityNudgeStatus, userId);
|
||||||
}
|
}
|
||||||
return acctSecurityNudgeStatus;
|
return acctSecurityNudgeStatus;
|
||||||
|
|||||||
@@ -44,7 +44,11 @@ export class HasItemsNudgeService extends DefaultSingleNudgeService {
|
|||||||
return cipher.deletedDate == null;
|
return cipher.deletedDate == null;
|
||||||
});
|
});
|
||||||
|
|
||||||
if (profileOlderThanCutoff && filteredCiphers.length > 0) {
|
if (
|
||||||
|
profileOlderThanCutoff &&
|
||||||
|
filteredCiphers.length > 0 &&
|
||||||
|
!nudgeStatus.hasSpotlightDismissed
|
||||||
|
) {
|
||||||
const dismissedStatus = {
|
const dismissedStatus = {
|
||||||
hasSpotlightDismissed: true,
|
hasSpotlightDismissed: true,
|
||||||
hasBadgeDismissed: true,
|
hasBadgeDismissed: true,
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ export class NewItemNudgeService extends DefaultSingleNudgeService {
|
|||||||
|
|
||||||
const ciphersBoolean = ciphers.some((cipher) => cipher.type === currentType);
|
const ciphersBoolean = ciphers.some((cipher) => cipher.type === currentType);
|
||||||
|
|
||||||
if (ciphersBoolean) {
|
if (ciphersBoolean && !nudgeStatus.hasSpotlightDismissed) {
|
||||||
const dismissedStatus = {
|
const dismissedStatus = {
|
||||||
hasSpotlightDismissed: true,
|
hasSpotlightDismissed: true,
|
||||||
hasBadgeDismissed: true,
|
hasBadgeDismissed: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user