Skip to content

Commit

Permalink
Enable tenant and context fields on 7.x instead of just 7.1 (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidJGapCR authored Jun 4, 2024
1 parent 42d78ef commit e97179d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions DataImport.Web/Features/ApiServers/AddEditApiServer.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ See the LICENSE and NOTICES files in the project root for more information.
@{
ViewBag.Title = (!@Model.Id.HasValue ? "Add" : "Edit") + " API Connection";
var hidden = string.IsNullOrEmpty(Model.ApiVersion) ? "hidden=true" : "";
var hiddenForApiVersionSeven = string.IsNullOrEmpty(Model.ApiVersion) || Model.ApiVersion != "7.1" ? "hidden=true" : "";
var hiddenForApiVersionSeven = string.IsNullOrEmpty(Model.ApiVersion) || Model.ApiVersion.Substring(0, 2) != "7." ? "hidden=true" : "";
}

<h2>@ViewBag.Title</h2>
Expand Down Expand Up @@ -150,7 +150,7 @@ See the LICENSE and NOTICES files in the project root for more information.
$("#Tenant").keyup(function () {
disableSaveButton(true);
});
function handleApiVersionResponse(apiVersion) {
var apiUrl = $("#Url").val();
if (!apiVersion && apiUrl)
Expand All @@ -160,7 +160,7 @@ See the LICENSE and NOTICES files in the project root for more information.
input.val(apiVersion);
$("#ApiVersionContent").text(apiVersion);
$("#divApiVersion").attr('hidden', !apiVersion);
$("#divApiVersionSeven").attr('hidden', apiVersion != "7.1");
$("#divApiVersionSeven").attr('hidden', apiVersion.substring(0, 2) != "7.");
}
function disableFormButtons(disabled) {
Expand Down

0 comments on commit e97179d

Please sign in to comment.