Thing edit: Hide clear button for location if not editable or not ready (#2277)

Fixes #2272.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
pull/2278/head
Florian Hotze 2024-01-17 22:30:05 +01:00 committed by GitHub
parent ef523642a9
commit 64c1e3576a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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