mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 14:23:32 +00:00
[AC-2436] Show unassigned items banner in web (#8655)
* Boostrap basic banner, show for all admins * Remove UI banner, fix method calls * Invert showBanner -> hideBanner * Add api call * Minor tweaks and wording * Change to active user state * Add tests * Fix mixed up names * Simplify logic * Add feature flag * Do not clear on logout * Update apps/web/src/locales/en/messages.json --------- Co-authored-by: Addison Beck <github@addisonbeck.com>
This commit is contained in:
@@ -506,6 +506,11 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
return new ListResponse(r, CipherResponse);
|
||||
}
|
||||
|
||||
async getShowUnassignedCiphersBanner(): Promise<boolean> {
|
||||
const r = await this.send("GET", "/ciphers/has-unassigned-ciphers", null, true, true);
|
||||
return r;
|
||||
}
|
||||
|
||||
async postCipher(request: CipherRequest): Promise<CipherResponse> {
|
||||
const r = await this.send("POST", "/ciphers", request, true, true);
|
||||
return new CipherResponse(r);
|
||||
|
||||
Reference in New Issue
Block a user