From 4c2cedbe254b1ae3739531293d4602cf5e131746 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Thu, 2 Nov 2023 10:10:00 +0100 Subject: [PATCH] Hid version selection in XSD tool --- Frontend/src/components/xml/XmlOutputFieldComponent.vue | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Frontend/src/components/xml/XmlOutputFieldComponent.vue b/Frontend/src/components/xml/XmlOutputFieldComponent.vue index 2857d2c..988ed4b 100644 --- a/Frontend/src/components/xml/XmlOutputFieldComponent.vue +++ b/Frontend/src/components/xml/XmlOutputFieldComponent.vue @@ -47,6 +47,7 @@ function changeAvailableVersions() { changeAvailableVersionsOfXSLT(); else if (props.tool == "xsd") versionsForCurrentEngine.value = ["N/A"]; + else if (props.tool == "xpath") changeAvailableVersionsOfXPath(); @@ -72,7 +73,7 @@ function selectDefaultEngine() { } function selectDefaultVersion() { - const lastVersion = versionsForCurrentEngine.value.length - 1 + const lastVersion = versionsForCurrentEngine.value.length - 1; version.value = versionsForCurrentEngine.value[lastVersion]; emitVersionChange(); } @@ -126,6 +127,10 @@ function emitVersionChange() { emit("update", version.value); } +function isVersionSelectionAvailable() { + return !(props.tool == "xsd"); +} +