mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-11 19:44: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())
|
setValue(await item.defaultValue())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (item.disabled === true) {
|
||||||
|
setDisabled(true)
|
||||||
|
}
|
||||||
|
|
||||||
if (typeof item.dependsOn === "object") {
|
if (typeof item.dependsOn === "object") {
|
||||||
// create a event handler to watch changes
|
// create a event handler to watch changes
|
||||||
Object.keys(item.dependsOn).forEach((key) => {
|
Object.keys(item.dependsOn).forEach((key) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user