mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Address review feedback on UnassignedBannerService (#8680)
* Introduce `UnassignedItemsBannerApiService` * Delete `WebUnassignedItemsBannerService`
This commit is contained in:
@@ -207,7 +207,6 @@ export abstract class ApiService {
|
||||
emergencyAccessId?: string,
|
||||
) => Promise<AttachmentResponse>;
|
||||
getCiphersOrganization: (organizationId: string) => Promise<ListResponse<CipherResponse>>;
|
||||
getShowUnassignedCiphersBanner: () => Promise<boolean>;
|
||||
postCipher: (request: CipherRequest) => Promise<CipherResponse>;
|
||||
postCipherCreate: (request: CipherCreateRequest) => Promise<CipherResponse>;
|
||||
postCipherAdmin: (request: CipherCreateRequest) => Promise<CipherResponse>;
|
||||
|
||||
@@ -506,11 +506,6 @@ 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