Revision 5059cd45
Added by Marek Hulán about 4 years ago
webpack/assets/javascripts/foreman_template_inputs.js | ||
---|---|---|
|
||
$fields.find(`.resource-type-${inputId}`).toggle(searchValue);
|
||
$fields.find(`.input-options-${inputId}`).toggle(plainValue);
|
||
$fields.find(`.input-hidden-value-${inputId}`).toggle(plainValue);
|
||
};
|
||
|
||
export function snippetChanged(item) {
|
||
const checked = $(item).is(':checked');
|
||
|
Also available in: Unified diff
Fixes #29464 - plain inputs can be hidden
Some inputs can be sensitive. Users typing such values would prefer to
have the value hidden in the form. The sensitive information can be a
password, private key or general multiline text. Therefore we aren't
limitting the input to type=password, but use text area with hiding
font, similarly to what we do for parameters.