diff --git a/wwwroot/js/app.ravLicense.js b/wwwroot/js/app.ravLicense.js index 89e0f07..17918ad 100644 --- a/wwwroot/js/app.ravLicense.js +++ b/wwwroot/js/app.ravLicense.js @@ -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" ); diff --git a/wwwroot/js/templates/app.ravLicense.handlebars b/wwwroot/js/templates/app.ravLicense.handlebars index 6c16afd..cb5a4e7 100644 --- a/wwwroot/js/templates/app.ravLicense.handlebars +++ b/wwwroot/js/templates/app.ravLicense.handlebars @@ -75,7 +75,6 @@ name="licenseExpires" id="licenseExpires" checked - disabled /> Temporary key / expires