1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

feat(upgrade): show subtle banner [EE-5017] (#8489)

This commit is contained in:
Chaim Lev-Ari 2023-02-19 09:47:50 +05:30 committed by GitHub
parent 631503fc1b
commit 9a8e95d017
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 217 additions and 90 deletions

View file

@ -1,3 +1,5 @@
import { useAnalytics } from '@/angulartics.matomo/analytics-services';
import { HubspotForm } from '@@/HubspotForm';
import { Modal } from '@@/modals/Modal';
@ -11,6 +13,7 @@ export function GetLicenseDialog({
// form is loaded from hubspot, so it won't have the same styling as the rest of the app
// since it won't support darkmode, we enforce a white background and black text for the components we use
// (Modal, CloseButton, loading text)
const { trackEvent } = useAnalytics();
return (
<Modal
@ -25,7 +28,14 @@ export function GetLicenseDialog({
region="na1"
portalId="4731999"
formId="1ef8ea88-3e03-46c5-8aef-c1d9f48fd06b"
onSubmitted={() => goToUploadLicense(true)}
onSubmitted={() => {
trackEvent('portainer-upgrade-license-key-requested', {
category: 'portainer',
metadata: { 'Upgrade-key-requested': true },
});
goToUploadLicense(true);
}}
loading={<div className="text-black">Loading...</div>}
/>
</div>