-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Address review feedback on
UnassignedBannerService
(#8680)
* Introduce `UnassignedItemsBannerApiService` * Delete `WebUnassignedItemsBannerService`
- Loading branch information
1 parent
4e7103f
commit c969b43
Showing
9 changed files
with
28 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 0 additions & 56 deletions
56
apps/web/src/app/layouts/header/web-unassigned-items-banner.service.spec.ts
This file was deleted.
Oops, something went wrong.
46 changes: 0 additions & 46 deletions
46
apps/web/src/app/layouts/header/web-unassigned-items-banner.service.ts
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
libs/angular/src/services/unassigned-items-banner.api.service.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Injectable } from "@angular/core"; | ||
|
||
import { ApiService } from "@bitwarden/common/abstractions/api.service"; | ||
|
||
@Injectable({ providedIn: "root" }) | ||
export class UnassignedItemsBannerApiService { | ||
constructor(private apiService: ApiService) {} | ||
|
||
async getShowUnassignedCiphersBanner(): Promise<boolean> { | ||
const r = await this.apiService.send( | ||
"GET", | ||
"/ciphers/has-unassigned-ciphers", | ||
null, | ||
true, | ||
true, | ||
); | ||
return r; | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
libs/angular/src/services/unassigned-items-banner.service.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters