[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:
aj-rosado 2024-05-16 21:45:25 +01:00 committed by GitHub
parent 4afe5de87b
commit 8cc113c5a4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 3 deletions

View File

@ -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 },
});
}
}
}

View File

@ -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."
}
}