Skip to content

Commit

Permalink
Relabel oh_persist block
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Jun 29, 2024
1 parent ad0f607 commit e74adf2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import Blockly from 'blockly'
import { javascriptGenerator } from 'blockly/javascript.js'
import { addDateSupport, blockGetCheckedInputType } from './utils.js'
import ThingGeneralSettings from '@/components/thing/thing-general-settings.vue'

export default function defineOHBlocks_Persistence (f7, isGraalJs, persistenceServices) {
/*
Expand Down Expand Up @@ -516,7 +515,7 @@ export default function defineOHBlocks_Persistence (f7, isGraalJs, persistenceSe
const statesInput = this.appendValueInput('states')
.appendField('persist')
.appendField(new Blockly.FieldDropdown([
['state at current time', 'currentState'], ['state at specific time', 'stateAt'], ['list of states (adding)', 'statesListADD'], ['list of states (replacing)', 'statesListREPLACE']
['state (at current time)', 'currentState'], ['state (at specific time)', 'stateAt'], ['list of states (adding)', 'statesListADD'], ['list of states (replacing)', 'statesListREPLACE']
], this.handleTypeSelection.bind(this)), 'persistType')
.setCheck(['String', 'Array'])
statesInput.setShadowDom(
Expand Down

0 comments on commit e74adf2

Please sign in to comment.