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

View File

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