mirror of
https://github.com/bitwarden/browser
synced 2025-12-11 13:53:34 +00:00
[AC-2502][AC-2498] Update free org report upgrade dialog (#9101)
* updated upgrade organization report popup texts * updated icon on free org upgrade at reports * solved floating promise * Showing upgrade on subscription page when navigating from report dialog
This commit is contained in:
@@ -27,15 +27,26 @@ export class IsPaidOrgGuard implements CanActivate {
|
|||||||
// Users without billing permission can't access billing
|
// Users without billing permission can't access billing
|
||||||
if (!org.canEditSubscription) {
|
if (!org.canEditSubscription) {
|
||||||
await this.dialogService.openSimpleDialog({
|
await this.dialogService.openSimpleDialog({
|
||||||
title: { key: "upgradeOrganization" },
|
title: { key: "upgradeOrganizationCloseSecurityGaps" },
|
||||||
content: { key: "notAvailableForFreeOrganization" },
|
content: { key: "upgradeOrganizationCloseSecurityGapsDesc" },
|
||||||
acceptButtonText: { key: "ok" },
|
acceptButtonText: { key: "ok" },
|
||||||
cancelButtonText: null,
|
cancelButtonText: null,
|
||||||
type: "info",
|
type: "info",
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
this.messagingService.send("upgradeOrganization", { organizationId: org.id });
|
const upgradeConfirmed = await this.dialogService.openSimpleDialog({
|
||||||
|
title: { key: "upgradeOrganizationCloseSecurityGaps" },
|
||||||
|
content: { key: "upgradeOrganizationCloseSecurityGapsDesc" },
|
||||||
|
acceptButtonText: { key: "upgradeOrganization" },
|
||||||
|
type: "info",
|
||||||
|
icon: "bwi-arrow-circle-up",
|
||||||
|
});
|
||||||
|
if (upgradeConfirmed) {
|
||||||
|
await this.router.navigate(["organizations", org.id, "billing", "subscription"], {
|
||||||
|
queryParams: { upgrade: true },
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8222,5 +8222,11 @@
|
|||||||
},
|
},
|
||||||
"protectYourFamilyOrBusiness": {
|
"protectYourFamilyOrBusiness": {
|
||||||
"message": "Protect your family or business"
|
"message": "Protect your family or business"
|
||||||
|
},
|
||||||
|
"upgradeOrganizationCloseSecurityGaps": {
|
||||||
|
"message": "Close security gaps with monitoring reports"
|
||||||
|
},
|
||||||
|
"upgradeOrganizationCloseSecurityGapsDesc": {
|
||||||
|
"message": "Stay ahead of security vulnerabilities by upgrading to a paid plan for enhanced monitoring."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user