Added placeholders for all XPath versions
This commit is contained in:
		| @@ -5,6 +5,8 @@ import tooltipEntryComponent from '@components/xml/tooltips/TooltipEntryComponen | ||||
|  | ||||
| import xpath1 from '@/assets/tooltips/xpath/xpath1.json'; | ||||
| import xpath2 from '@/assets/tooltips/xpath/xpath2.json'; | ||||
| import xpath3 from '@/assets/tooltips/xpath/xpath3.json'; | ||||
| import xpath31 from '@/assets/tooltips/xpath/xpath31.json'; | ||||
|  | ||||
| const props = defineProps({ | ||||
|     version: { | ||||
| @@ -16,10 +18,17 @@ const props = defineProps({ | ||||
| const areTooltipsHidden = ref(true) | ||||
|  | ||||
| function selectXPathVersion() { | ||||
|     if (props.version == "1.0") { | ||||
|         return xpath1; | ||||
|     switch(props.version) { | ||||
|         case "1.0": | ||||
|             return xpath1; | ||||
|         case "2.0": | ||||
|             return xpath2; | ||||
|         case "3.0": | ||||
|             return xpath3; | ||||
|         case "3.1": | ||||
|         default: | ||||
|             return xpath31; | ||||
|     } | ||||
|     else return xpath2; | ||||
| } | ||||
|  | ||||
| function toggleTooltips() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user