Made isVersionSelectionAvailable more specific
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user