[blockly] Make HTTP block method name dropdown labels less technical (#2740)

See https://github.com/openhab/openhab-webui/pull/2607#issuecomment-2322954012.

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
pull/2747/head
Mark Herwege 2024-09-07 18:02:07 +02:00 committed by GitHub
parent 22a42c3607
commit 99a9c0aa18
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 6 deletions

View File

@ -30,14 +30,12 @@ export default function (f7, isGraalJs) {
.appendField(imageTimeoutField, 'imgTimeout')
.appendField(imageHeaderField, 'imgHeader')
.appendField(imageQueryField, 'imgQuery')
.appendField('send', 'methodField')
.appendField(new Blockly.FieldDropdown([
['HttpGetRequest', 'HttpGetRequest'],
['HttpPostRequest', 'HttpPostRequest'],
['HttpPutRequest', 'HttpPutRequest'],
['HttpDeleteRequest', 'HttpDeleteRequest']
['send HTTP GET to', 'HttpGetRequest'],
['send HTTP POST to', 'HttpPostRequest'],
['send HTTP PUT to', 'HttpPutRequest'],
['send HTTP DELETE to', 'HttpDeleteRequest']
], this.handleRequestTypeSelection.bind(this)), 'requestType')
.appendField('to')
this.setInputsInline(false)
this.setOutput(true, null)