Commit 533280f5 authored by Antoor's avatar Antoor Committed by GitHub

Merge pull request #66 from antoor/v2.0-beta-fix-random-encoder

Repair random selection Encoder
parents 52dc08c1 020beef4
......@@ -202,7 +202,8 @@ class Form {
];
if (c !== 'custom') {
_.push({
type: 'radio', name: `encoder_${c}`, value: 'random', label: 'random'
type: 'radio', name: `encoder_${c}`, value: 'random',
label: 'random', checked: _encoder === 'random'
});
}
encoders.map((e) => {
......@@ -328,8 +329,13 @@ class Form {
'header',
{
type: "fieldset", label: `#${_headerCount}`, inputWidth: 480, list:[
{type: "input", name: `header-${_headerCount}_name`, inputWidth: 350, labelWidth: 50, label: "Name", value: name},
{type: "input", name: `header-${_headerCount}_value`, inputWidth: 350, labelWidth: 50, label: "Value", value: value}
{
type: "input", name: `header-${_headerCount}_name`,
inputWidth: 350, labelWidth: 50, label: "Name", value: name
}, {
type: "input", name: `header-${_headerCount}_value`,
inputWidth: 350, labelWidth: 50, label: "Value", value: value
}
]
}
)
......@@ -342,8 +348,13 @@ class Form {
'body',
{
type: "fieldset", label: `#${_bodyCount}`, inputWidth: 480, list:[
{type: "input", name: `body-${_bodyCount}_name`, inputWidth: 350, labelWidth: 50, label: "Name", value: name},
{type: "input", name: `body-${_bodyCount}_value`, inputWidth: 350, labelWidth: 50, label: "Value", value: value}
{
type: "input", name: `body-${_bodyCount}_name`,
inputWidth: 350, labelWidth: 50, label: "Name", value: name
}, {
type: "input", name: `body-${_bodyCount}_value`,
inputWidth: 350, labelWidth: 50, label: "Value", value: value
}
]
}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment