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
parent
ef523642a9
commit
64c1e3576a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue