configEditor, explain why input is disabled

main
Codinget 5 years ago
parent 055df91ee7
commit 93c9fc5ad9
  1. 4
      src/js/configEditor.js

@ -67,7 +67,7 @@ class ConfigEditor extends Popup {
input.disabled=
data.excludes
.some(key => config.getB(key));
input.title=input.disabled?`Disable ${data.excludes.join(',')} to enable`:'';
input.title=input.disabled?`Disable '${data.excludes.map(k => metaConfig[k].name).join('\', \'')}' to enable`:'';
};
setEnabled();
@ -78,7 +78,7 @@ class ConfigEditor extends Popup {
} else if(data.parent) {
const setEnabled=() => {
input.disabled=!config.getB(data.parent);
input.title=input.disabled?`Enable ${data.parent} to enable`:'';
input.title=input.disabled?`Enable '${metaConfig[data.parent].name}' to enable`:'';
};
setEnabled();

Loading…
Cancel
Save