You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using license extension URL from the ServiceControl API (#2108)
* using license extension url from the backend api
* fix formatting
* moar linter fixes
* lint fixes
* workaround the shared state between the tests
* Update src/Frontend/test/preconditions/hasLicense.ts
Co-authored-by: WilliamBZA <[email protected]>
* Change license_extension_url to be nullable
Co-authored-by: John Simons <[email protected]>
---------
Co-authored-by: WilliamBZA <[email protected]>
Co-authored-by: John Simons <[email protected]>
@@ -18,7 +19,7 @@ function displayWarningMessage(licenseStatus: LicenseStatus) {
18
19
break;
19
20
}
20
21
case"ValidWithExpiringTrial": {
21
-
const trialExpiring =`<div><strong>Non-production development license expiring</strong><div>Your non-production development license will expire soon. To continue using the Particular Service Platform you'll need to extend your license.</div><a href="http://particular.net/extend-your-trial?p=servicepulse" class="btn btn-warning"><i class="fa fa-external-link-alt"></i> Extend your license</a><a href="${configurationRootLink}" class="btn btn-light">View license details</a></div>`;
22
+
const trialExpiring =`<div><strong>Non-production development license expiring</strong><div>Your non-production development license will expire soon. To continue using the Particular Service Platform you'll need to extend your license.</div><a href="${license.license_extension_url}" class="btn btn-warning"><i class="fa fa-external-link-alt"></i> Extend your license</a><a href="${configurationRootLink}" class="btn btn-light">View license details</a></div>`;
<divclass="license-expired-text"v-if="licenseStatus.isPlatformTrialExpired">Your license expired. To continue using the Particular Service Platform you'll need to extend your license.</div>
//We need to reset the global state to ensure the warning toast is always triggered by the value changing between multiple test runs. See documented issue and proposed solution https://github.com/Particular/ServicePulse/issues/1905
0 commit comments