Skip to content

Commit

Permalink
Thing create: Fix bridge can't be selected (#2354)
Browse files Browse the repository at this point in the history
Regression from #2329.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 authored Feb 15, 2024
1 parent 95c33a3 commit e3fae0b
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
This type of Thing needs to be associated to a working Bridge to function properly.
</f7-block-footer>
<f7-list v-if="ready && thingType.supportedBridgeTypeUIDs.length" inline-labels no-hairlines-md>
<thing-picker v-if="thing.editable"
<thing-picker v-if="editable"
title="Bridge" name="bridge" :value="thing.bridgeUID"
@input="updateBridge"
:filterType="thingType.supportedBridgeTypeUIDs" />
Expand All @@ -49,6 +49,11 @@ export default {
ThingPicker,
ClipboardIcon
},
computed: {
editable () {
return this.createMode || (this.thing && this.thing.editable)
}
},
methods: {
computedThingUid () {
return (this.thing.bridgeUID)
Expand Down

0 comments on commit e3fae0b

Please sign in to comment.