|
|
|
@ -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(); |
|
|
|
|