From 183a35efb0990f8364ab2de1b9589ade7fcacb50 Mon Sep 17 00:00:00 2001 From: Adam Bem Date: Mon, 19 Jun 2023 10:37:38 +0200 Subject: [PATCH] Extracted condition to function --- Frontend/src/components/xml/XmlInputFieldComponent.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Frontend/src/components/xml/XmlInputFieldComponent.vue b/Frontend/src/components/xml/XmlInputFieldComponent.vue index 11325ab..feba5fd 100644 --- a/Frontend/src/components/xml/XmlInputFieldComponent.vue +++ b/Frontend/src/components/xml/XmlInputFieldComponent.vue @@ -26,6 +26,10 @@ function clear() { updateData(''); } +function isXMLField() { + return props.prettyName.toLowerCase() == 'xml'; +} +