diff --git a/js/app/views/ParamArgumentsUI.js b/js/app/views/ParamArgumentsUI.js index ae465d2..fe15b3d 100644 --- a/js/app/views/ParamArgumentsUI.js +++ b/js/app/views/ParamArgumentsUI.js @@ -285,6 +285,27 @@ Ext.define('amdaUI.ParamArgumentsUI', { me.add(itemsCombo); break; + case 'bool' : + var argumentField = Ext.create('Ext.form.Checkbox', { + argId: 'template_' + key, + fieldLabel: argument.name, + value: (parseInt(argument.default) == 1), + listeners: { + change: function(field, newValue, oldValue, eOpts) { + var template_args = me.paramRequestObject.get('template_args'); + if (!template_args) + template_args = {}; + template_args[key] = newValue; + me.paramRequestObject.set('template_args', template_args); + if (me.onChange != null) + me.onChange(uiScope, key, newValue, oldValue, true); + }, + scope: me + } + }); + + me.add(argumentField); + break; default: console.log('Template argument type not yet implemented: '+argument.type); } -- libgit2 0.21.2