[blockly] Fix Thing "is enabled" code generation (#2588)
Thing::enabled produces undefined because enabled is no valid field. Using Thing::isEnabled instead. Signed-off-by: Stefan Höhn <mail@stefanhoehn.com>pull/2592/head
parent
21b669e3d5
commit
df8ef84ff0
|
@ -124,7 +124,7 @@ export default function defineOHBlocks (f7, isGraalJs) {
|
|||
init: function () {
|
||||
const block = this
|
||||
const dropdown = new Blockly.FieldDropdown(
|
||||
[['UID', 'uid'], ['label', 'label'], ['status', 'status'], ['status info', 'statusInfo'], ['location', 'location'], ['is enabled', 'enabled'], ['thing type UID', 'thingTypeUID'], ['bridge UID', 'bridgeUID']],
|
||||
[['UID', 'uid'], ['label', 'label'], ['status', 'status'], ['status info', 'statusInfo'], ['location', 'location'], ['is enabled', 'isEnabled'], ['thing type UID', 'thingTypeUID'], ['bridge UID', 'bridgeUID']],
|
||||
function (newMode) {
|
||||
block._updateType(newMode)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue