mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
handle disabled items
This commit is contained in:
parent
04bf8d1461
commit
9d29fa0c10
@ -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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user