mirror of
https://github.com/bitwarden/browser
synced 2025-12-20 02:03:39 +00:00
Address review feedback on UnassignedBannerService (#8680)
* Introduce `UnassignedItemsBannerApiService` * Delete `WebUnassignedItemsBannerService`
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
import { EMPTY, concatMap } from "rxjs";
|
||||
|
||||
import { ApiService } from "@bitwarden/common/abstractions/api.service";
|
||||
import {
|
||||
StateProvider,
|
||||
UNASSIGNED_ITEMS_BANNER_DISK,
|
||||
UserKeyDefinition,
|
||||
} from "@bitwarden/common/platform/state";
|
||||
|
||||
import { UnassignedItemsBannerApiService } from "./unassigned-items-banner.api.service";
|
||||
|
||||
export const SHOW_BANNER_KEY = new UserKeyDefinition<boolean>(
|
||||
UNASSIGNED_ITEMS_BANNER_DISK,
|
||||
"showBanner",
|
||||
@@ -37,7 +38,7 @@ export class UnassignedItemsBannerService {
|
||||
|
||||
constructor(
|
||||
private stateProvider: StateProvider,
|
||||
private apiService: ApiService,
|
||||
private apiService: UnassignedItemsBannerApiService,
|
||||
) {}
|
||||
|
||||
async hideBanner() {
|
||||
|
||||
Reference in New Issue
Block a user