Website: Update Fleet Premium trial page (#38580)

Closes: https://github.com/fleetdm/fleet/issues/38576

Changes:
- Updated the Fleet Premium trial page to display the trial license key
sent from the page's view action instead of displaying it from the `me`
variable set in the custom hook.
- Added a minimum height to the Fleet Premium trial page to prevent the
modal scrolling outside of the page's background
This commit is contained in:
Eric 2026-01-21 11:44:09 -06:00 committed by GitHub
parent 67414fd8a7
commit 425ee85279
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 2 deletions

View file

@ -32,7 +32,7 @@ parasails.registerPage('fleet-premium-trial', {
await setTimeout(()=>{
$('[purpose="command-copy-button"]').removeClass('copied');
}, 2000);
navigator.clipboard.writeText(this.me.fleetPremiumTrialLicenseKey);
navigator.clipboard.writeText(this.trialLicenseKey);
}
}
});

View file

@ -3,6 +3,7 @@
background: url('/images/background-fleet-ui-1400x1264@2x.png');
background-size: cover;
height: 100vh;
min-height: 800px;
h3 {
color: var(--text-text-brand, #192147);

View file

@ -25,7 +25,7 @@
<div purpose="license-key">
<div purpose="trial-key-fade"></div>
<div purpose="license-key-container">
<code><span>{{me.fleetPremiumTrialLicenseKey}}</span></code>
<code><span>{{trialLicenseKey}}</span></code>
</div>
<a purpose="command-copy-button" @click="clickCopyLicenseKey()"></a>
</div>