Skip to content

Commit

Permalink
[blockly] Make HTTP block method name dropdown labels less technical (#…
Browse files Browse the repository at this point in the history
…2740)

See #2607 (comment).

Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
  • Loading branch information
mherwege authored Sep 7, 2024
1 parent 22a42c3 commit 99a9c0a
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 99a9c0a

Please sign in to comment.