This commit is contained in:
2022-08-24 22:23:05 +00:00
parent 2ea0ede7e8
commit 560fdaf28c
2 changed files with 7 additions and 3 deletions

View File

@@ -79,6 +79,12 @@ app.ravLicense = (function () {
Count: Number($("#techcount").val())
});
} else {
if (!$("#licenseExpires").prop("checked")) {
alert(
"Subscriptin licenses MUST have a license expiry, can not process"
);
return false;
}
features.push({
Feature: "ActiveInternalUsers",
Count: Number($("#subusercount").val())
@@ -97,8 +103,8 @@ app.ravLicense = (function () {
}
submitData["features"] = features;
console.log("submitData", submitData);
//submit
// alert("STUB submit");
app.api.createRavLicense(submitData, function (res) {
if (res.error) {
$.gevent.publish("app-show-error", res.msg);
@@ -135,7 +141,6 @@ app.ravLicense = (function () {
const isPerpetual = $("#perpetual").prop("checked");
$("#licenseExpires").prop("checked", !isPerpetual);
$("#licenseExpires").prop("disabled", !isPerpetual);
$("#title").text(
isPerpetual ? "Perpetual license" : "Subscription license"
);

View File

@@ -75,7 +75,6 @@
name="licenseExpires"
id="licenseExpires"
checked
disabled
/>
Temporary key / expires
</label>