Cleanup command
Signed-off-by: FTCHD <144691102+FTCHD@users.noreply.github.com>
This commit is contained in:
@@ -255,6 +255,35 @@ export default function RemoteDefaultsDrawer({
|
||||
<span className="font-mono text-blue-300">Browse</span>{' '}
|
||||
option
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
isSelected={
|
||||
!config?.disabledActions?.includes('tray-cleanup')
|
||||
}
|
||||
onValueChange={(value) => {
|
||||
if (value) {
|
||||
setConfig((prev) => ({
|
||||
...prev,
|
||||
disabledActions:
|
||||
prev?.disabledActions?.filter(
|
||||
(action) =>
|
||||
action !== 'tray-cleanup'
|
||||
),
|
||||
}))
|
||||
} else {
|
||||
setConfig((prev) => ({
|
||||
...prev,
|
||||
disabledActions: [
|
||||
...(prev?.disabledActions || []),
|
||||
'tray-cleanup',
|
||||
],
|
||||
}))
|
||||
}
|
||||
}}
|
||||
>
|
||||
Show{' '}
|
||||
<span className="font-mono text-blue-300">Cleanup</span>{' '}
|
||||
option
|
||||
</Checkbox>
|
||||
<Checkbox
|
||||
isSelected={
|
||||
!config?.disabledActions?.includes('tray-remove')
|
||||
|
||||
Reference in New Issue
Block a user