File tree Expand file tree Collapse file tree 1 file changed +38
-1
lines changed
src/components/custom-procedures Expand file tree Collapse file tree 1 file changed +38
-1
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,44 @@ const CustomProcedures = props => (
270
270
</ div >
271
271
</ div >
272
272
{ ! props . editing && < div className = { styles . optionsRow } style = { { marginTop : '1em' } } >
273
- { ! props . returns && < >
273
+ { props . returns ? < >
274
+ < div
275
+ className = { styles . optionCard }
276
+ role = "button"
277
+ tabIndex = "0"
278
+ onClick = { ( ) => props . onOutputTypeChanged ( 'string' ) }
279
+ >
280
+ < img
281
+ className = { styles . optionIcon }
282
+ src = { reporterBlockIcon }
283
+ />
284
+ < div className = { styles . optionTitle } >
285
+ < FormattedMessage
286
+ defaultMessage = "Return Text or Number"
287
+ description = "Label for block to return text"
288
+ id = "gui.customProcedures.returnText"
289
+ />
290
+ </ div >
291
+ </ div >
292
+ < div
293
+ className = { styles . optionCard }
294
+ role = "button"
295
+ tabIndex = "0"
296
+ onClick = { ( ) => props . onOutputTypeChanged ( 'boolean' ) }
297
+ >
298
+ < img
299
+ className = { styles . optionIcon }
300
+ src = { booleanBlockIcon }
301
+ />
302
+ < div className = { styles . optionTitle } >
303
+ < FormattedMessage
304
+ defaultMessage = "Return a Boolean"
305
+ description = "Label for block to return a boolean"
306
+ id = "gui.customProcedures.returnABoolean"
307
+ />
308
+ </ div >
309
+ </ div >
310
+ </ > : < >
274
311
< div
275
312
className = { styles . optionCard }
276
313
role = "button"
You can’t perform that action at this time.
0 commit comments