Skip to content

Commit

Permalink
Thing edit: Hide clear button for location if not editable or not rea…
Browse files Browse the repository at this point in the history
…dy (#2277)

Fixes #2272.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Jan 17, 2024
1 parent ef52364 commit 64c1e35
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<f7-list-input label="Label" type="text" :disabled="!ready || readOnly" placeholder="e.g. My Thing" :value="thing.label"
@input="thing.label = $event.target.value; $emit('updated')" required validate />
<f7-list-input label="Location" type="text" :disabled="!ready || readOnly" placeholder="e.g. Kitchen" :value="thing.location"
@input="thing.location = $event.target.value; $emit('updated')" clear-button />
@input="thing.location = $event.target.value; $emit('updated')" :clear-button="ready && !readOnly" />
</f7-list>
<f7-block-title v-if="ready && thingType.supportedBridgeTypeUIDs.length">
Parent Bridge
Expand Down

0 comments on commit 64c1e35

Please sign in to comment.