mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-21 16:18:28 +01: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:
parent
4afe5de87b
commit
8cc113c5a4
@ -27,15 +27,26 @@ export class IsPaidOrgGuard implements CanActivate {
|
||||
// Users without billing permission can't access billing
|
||||
if (!org.canEditSubscription) {
|
||||
await this.dialogService.openSimpleDialog({
|
||||
title: { key: "upgradeOrganization" },
|
||||
content: { key: "notAvailableForFreeOrganization" },
|
||||
title: { key: "upgradeOrganizationCloseSecurityGaps" },
|
||||
content: { key: "upgradeOrganizationCloseSecurityGapsDesc" },
|
||||
acceptButtonText: { key: "ok" },
|
||||
cancelButtonText: null,
|
||||
type: "info",
|
||||
});
|
||||
return false;
|
||||
} 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": {
|
||||
"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."
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user