From ae060916f65f38b931ba9c95c47475f24f6faf68 Mon Sep 17 00:00:00 2001 From: Alex Godbehere Date: Mon, 11 Mar 2024 13:51:57 +0000 Subject: [PATCH] Cast Eng Low and High to numbers in Metric editor and schema builder --- .../js/components/FormControls/Input.vue | 21 ++++++-- .../SchemaEditor/MetricEditPanel.vue | 51 ++++++++++++++----- 2 files changed, 57 insertions(+), 15 deletions(-) diff --git a/resources/js/components/FormControls/Input.vue b/resources/js/components/FormControls/Input.vue index 88e278b..d9c1527 100644 --- a/resources/js/components/FormControls/Input.vue +++ b/resources/js/components/FormControls/Input.vue @@ -27,7 +27,7 @@ class="fpl-input flex-grow text-gray-700" :class="(valid.$invalid) ? 'ring-2 ring-offset-2 ring-opacity-30 ring-red-500' :''"> @@ -66,8 +77,20 @@
@@ -79,7 +102,19 @@ @@ -197,15 +232,6 @@ export default { Sparkplug_Type: { default: ['String'], }, - Eng_Unit: { - default: '', - }, - Eng_Low: { - default: '', - }, - Eng_High: { - default: '', - }, }, ..._.cloneDeep(this.selectedMetric.property.allOf[1].properties), } @@ -219,6 +245,7 @@ export default { localMetric: null, metricSchema: null, types: null, + console: console, } }, }