mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
set default values for navButtons$ observable (#14859)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { Component } from "@angular/core";
|
import { Component } from "@angular/core";
|
||||||
import { combineLatest, map, Observable, switchMap } from "rxjs";
|
import { combineLatest, map, Observable, startWith, switchMap } from "rxjs";
|
||||||
|
|
||||||
import { NudgesService } from "@bitwarden/angular/vault";
|
import { NudgesService } from "@bitwarden/angular/vault";
|
||||||
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
import { AccountService } from "@bitwarden/common/auth/abstractions/account.service";
|
||||||
@@ -23,6 +23,7 @@ export class TabsV2Component {
|
|||||||
this.configService.getFeatureFlag$(FeatureFlag.PM8851_BrowserOnboardingNudge),
|
this.configService.getFeatureFlag$(FeatureFlag.PM8851_BrowserOnboardingNudge),
|
||||||
this.hasActiveBadges$,
|
this.hasActiveBadges$,
|
||||||
]).pipe(
|
]).pipe(
|
||||||
|
startWith([false, false]),
|
||||||
map(([onboardingFeatureEnabled, hasBadges]) => {
|
map(([onboardingFeatureEnabled, hasBadges]) => {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user