diff --git a/src/abstractions/api.service.ts b/src/abstractions/api.service.ts index 15c6a51b37..c8bac36130 100644 --- a/src/abstractions/api.service.ts +++ b/src/abstractions/api.service.ts @@ -119,5 +119,6 @@ export abstract class ApiService { postTwoFactorEmailSetup: (request: TwoFactorEmailRequest) => Promise; postTwoFactorEmail: (request: TwoFactorEmailRequest) => Promise; postOrganization: (request: OrganizationCreateRequest) => Promise; + postLeaveOrganization: (id: string) => Promise; postOrganizationLicense: (data: FormData) => Promise; } diff --git a/src/angular/components/ciphers.component.ts b/src/angular/components/ciphers.component.ts index 50f460be43..fea70ce280 100644 --- a/src/angular/components/ciphers.component.ts +++ b/src/angular/components/ciphers.component.ts @@ -37,7 +37,7 @@ export class CiphersComponent { await this.load(this.filter); } - async applyFilter(filter: (cipher: CipherView) => boolean = null) { + applyFilter(filter: (cipher: CipherView) => boolean = null) { this.filter = filter; if (this.filter == null) { this.ciphers = this.allCiphers; diff --git a/src/services/api.service.ts b/src/services/api.service.ts index d6938f47e7..a81cf77c34 100644 --- a/src/services/api.service.ts +++ b/src/services/api.service.ts @@ -429,6 +429,10 @@ export class ApiService implements ApiServiceAbstraction { return new OrganizationResponse(r); } + postLeaveOrganization(id: string): Promise { + return this.send('POST', '/organizations/' + id + '/leave', null, true, false); + } + async postOrganizationLicense(data: FormData): Promise { const r = await this.send('POST', '/organizations/license', data, true, true); return new OrganizationResponse(r);