mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
feat(system/upgrade): add get license dialog [EE-4743] (#8249)
This commit is contained in:
parent
5942f4ff58
commit
406ff8812c
12 changed files with 369 additions and 25 deletions
35
app/react/sidebar/UpgradeBEBanner/GetLicenseDialog.tsx
Normal file
35
app/react/sidebar/UpgradeBEBanner/GetLicenseDialog.tsx
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { HubspotForm } from '@@/HubspotForm';
|
||||
import { Modal } from '@@/modals/Modal';
|
||||
|
||||
export function GetLicenseDialog({
|
||||
onDismiss,
|
||||
goToUploadLicense,
|
||||
}: {
|
||||
onDismiss: () => void;
|
||||
goToUploadLicense: (isSubmitted: boolean) => void;
|
||||
}) {
|
||||
// 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)
|
||||
|
||||
return (
|
||||
<Modal
|
||||
onDismiss={onDismiss}
|
||||
aria-label="Upgrade Portainer to Business Edition"
|
||||
size="lg"
|
||||
className="!bg-white [&>.close-button]:!text-black"
|
||||
>
|
||||
<Modal.Body>
|
||||
<div className="max-h-[80vh] overflow-auto">
|
||||
<HubspotForm
|
||||
region="na1"
|
||||
portalId="4731999"
|
||||
formId="1ef8ea88-3e03-46c5-8aef-c1d9f48fd06b"
|
||||
onSubmitted={() => goToUploadLicense(true)}
|
||||
loading={<div className="text-black">Loading...</div>}
|
||||
/>
|
||||
</div>
|
||||
</Modal.Body>
|
||||
</Modal>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue