update SERVE checkbox

Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
FTCHD
2025-10-01 23:08:32 +02:00
parent 590ae9d5f6
commit 703bc10379
+16 -18
View File
@@ -573,24 +573,22 @@ function GeneralSection() {
>
Show <span className="font-mono text-blue-300">Move</span> option
</Checkbox>
{showServe && (
<Checkbox
isSelected={!disabledActions?.includes('tray-serve')}
onValueChange={(value) => {
if (value) {
setDisabledActions(
disabledActions?.filter(
(action) => action !== 'tray-serve'
) || []
)
} else {
setDisabledActions([...(disabledActions || []), 'tray-serve'])
}
}}
>
Show <span className="font-mono text-blue-300">Serve</span> option
</Checkbox>
)}
<Checkbox
isSelected={!disabledActions?.includes('tray-serve')}
onValueChange={(value) => {
if (value) {
setDisabledActions(
disabledActions?.filter((action) => action !== 'tray-serve') ||
[]
)
} else {
setDisabledActions([...(disabledActions || []), 'tray-serve'])
}
}}
isDisabled={!showServe}
>
Show <span className="font-mono text-blue-300">Serve</span> option
</Checkbox>
<Checkbox
isSelected={!disabledActions?.includes('tray-purge')}
onValueChange={(value) => {