Skip to content

Commit

Permalink
use correct data field for detected type
Browse files Browse the repository at this point in the history
  • Loading branch information
steersbob committed Jun 6, 2024
1 parent c4e76b1 commit 8d27189
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,6 @@ const hasValue = computed<boolean>(() => block.value.data.value.value !== null);
)
"
/>
<QuantityField
:model-value="block.data.offset"
title="Offset"
label="Offset"
class="col-grow"
@update:model-value="(v) => patchBlock({ offset: v })"
/>
<SelectField
:model-value="block.data.sensorType"
:options="tempSensorAnalogTypeOpts"
Expand All @@ -106,8 +99,18 @@ const hasValue = computed<boolean>(() => block.value.data.value.value !== null);
class="col-grow"
@update:model-value="(v) => patchBlock({ spec: v })"
/>

<div class="col-break" />

<QuantityField
:model-value="block.data.offset"
title="Offset"
label="Offset"
class="col-grow"
@update:model-value="(v) => patchBlock({ offset: v })"
/>
<LabeledField
v-model="ENUM_LABELS_ANALOG_SENSOR_TYPE[block.data.sensorType]"
v-model="ENUM_LABELS_ANALOG_SENSOR_TYPE[block.data.detected]"
readonly
label="Detected type"
class="col-grow"
Expand Down

0 comments on commit 8d27189

Please sign in to comment.