handle disabled items

This commit is contained in:
SrGooglo 2022-12-13 12:06:27 +00:00
parent 04bf8d1461
commit 9d29fa0c10

View File

@ -159,6 +159,10 @@ const SettingItem = (props) => {
setValue(await item.defaultValue())
}
if (item.disabled === true) {
setDisabled(true)
}
if (typeof item.dependsOn === "object") {
// create a event handler to watch changes
Object.keys(item.dependsOn).forEach((key) => {