Made isVersionSelectionAvailable more specific
This commit is contained in:
		| @@ -7,7 +7,7 @@ const props = defineProps( | |||||||
|     { |     { | ||||||
|         tool: {type: String, required: true}, |         tool: {type: String, required: true}, | ||||||
|         xml: {type: [String, Array<TabData>], 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() { | function isVersionSelectionAvailable() { | ||||||
|     return !(props.tool == "xsd"); |     return !(versionsForCurrentEngine.value.length == 1 && versionsForCurrentEngine.value.at(0) == "N/A"); | ||||||
| } | } | ||||||
|  |  | ||||||
| function highlightField() { | function highlightField() { | ||||||
|     if (errorOccurred.value) { |     if (errorOccurred.value) | ||||||
|         return "text-field-error"; |         return "text-field-error"; | ||||||
|     } |  | ||||||
|     if (successOccurred.value) { |     if (successOccurred.value) | ||||||
|         return "text-field-success"; |         return "text-field-success"; | ||||||
|     } |  | ||||||
|     return ""; |     return ""; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user