mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
[PM-21109] Resend invitation button not responsive when clicked (#14603)
* Resolve the resend email bug * Resolve the resend invite option for Active sponsorship * Resolve the lint error * Rename the o variable properly
This commit is contained in:
@@ -490,7 +490,6 @@ export abstract class ApiService {
|
||||
sponsorshipToken: string,
|
||||
request: OrganizationSponsorshipRedeemRequest,
|
||||
) => Promise<void>;
|
||||
postResendSponsorshipOffer: (sponsoringOrgId: string) => Promise<void>;
|
||||
|
||||
getMasterKeyFromKeyConnector: (keyConnectorUrl: string) => Promise<KeyConnectorUserKeyResponse>;
|
||||
postUserKeyToKeyConnector: (
|
||||
|
||||
@@ -5,4 +5,9 @@ export abstract class OrganizationSponsorshipApiServiceAbstraction {
|
||||
abstract getOrganizationSponsorship(
|
||||
sponsoredOrgId: string,
|
||||
): Promise<ListResponse<OrganizationSponsorshipInvitesResponse>>;
|
||||
|
||||
abstract postResendSponsorshipOffer(
|
||||
sponsoringOrgId: string,
|
||||
friendlyName?: string,
|
||||
): Promise<void>;
|
||||
}
|
||||
|
||||
@@ -19,4 +19,18 @@ export class OrganizationSponsorshipApiService
|
||||
);
|
||||
return new ListResponse(r, OrganizationSponsorshipInvitesResponse);
|
||||
}
|
||||
|
||||
async postResendSponsorshipOffer(
|
||||
sponsoringOrgId: string,
|
||||
sponsoredFriendlyName?: string,
|
||||
): Promise<void> {
|
||||
let url = "/organization/sponsorship/" + sponsoringOrgId + "/families-for-enterprise/resend";
|
||||
|
||||
// Add the query parameter if sponsoredOrgUserId is provided
|
||||
if (sponsoredFriendlyName) {
|
||||
url += `?sponsoredFriendlyName=${encodeURIComponent(sponsoredFriendlyName)}`;
|
||||
}
|
||||
|
||||
return await this.apiService.send("POST", url, null, true, false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1682,16 +1682,6 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
);
|
||||
}
|
||||
|
||||
async postResendSponsorshipOffer(sponsoringOrgId: string): Promise<void> {
|
||||
return await this.send(
|
||||
"POST",
|
||||
"/organization/sponsorship/" + sponsoringOrgId + "/families-for-enterprise/resend",
|
||||
null,
|
||||
true,
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
||||
// Keep the running refreshTokenPromise to prevent parallel calls.
|
||||
protected refreshToken(): Promise<string> {
|
||||
if (this.refreshTokenPromise === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user