CP-43000: Add trial edition and CSS expiry warnings to GeneralTabPage

Signed-off-by: Danilo Del Busso <danilo.delbusso@cloud.com>
This commit is contained in:
Danilo Del Busso 2023-06-27 15:40:48 +01:00
parent ceaa9abd66
commit b8a3a7cdeb
No known key found for this signature in database

View File

@ -978,6 +978,15 @@ namespace XenAdmin.TabPages
PDSection s = pdSectionLicense;
if (host.CanShowTrialEditionUpsell())
{
pdSectionLicense.AddEntryLink(Messages.WARNING, Messages.TRIAL_EDITION_UPSELLING_MESSAGE, () => Program.OpenURL(InvisibleMessages.LICENSE_BUY_URL));
}
else if (host.CssLicenseHasExpired())
{
pdSectionLicense.AddEntryLink(Messages.WARNING, Messages.EXPIRED_CSS_UPSELLING_MESSAGE_HOST, () => Program.OpenURL(InvisibleMessages.LICENSE_BUY_URL));
}
if (host.license_params == null)
return;