Made isVersionSelectionAvailable more specific

This commit is contained in:
2023-11-30 08:13:45 +01:00
parent 2360c19f4a
commit 01a21a58b2

View File

@@ -7,7 +7,7 @@ const props = defineProps(
{
tool: {type: String, required: true},
xml: {type: [String, Array<TabData>], required: true},
query: {type: String}
query: {type: String, required: true}
}
)
@@ -184,16 +184,16 @@ function emitVersionChange() {
}
function isVersionSelectionAvailable() {
return !(props.tool == "xsd");
return !(versionsForCurrentEngine.value.length == 1 && versionsForCurrentEngine.value.at(0) == "N/A");
}
function highlightField() {
if (errorOccurred.value) {
if (errorOccurred.value)
return "text-field-error";
}
if (successOccurred.value) {
if (successOccurred.value)
return "text-field-success";
}
return "";
}