don't save until confirmed restart

This commit is contained in:
Josh Hawkins 2024-11-05 09:22:25 -06:00
parent b00884f148
commit 86d75418f9

View File

@ -205,10 +205,7 @@ function ConfigEditor() {
size="sm" size="sm"
className="flex items-center gap-2" className="flex items-center gap-2"
aria-label="Save and restart" aria-label="Save and restart"
onClick={() => { onClick={() => setRestartDialogOpen(true)}
onHandleSaveConfig("saveonly");
setRestartDialogOpen(true);
}}
> >
<div className="relative size-5"> <div className="relative size-5">
<LuSave className="absolute left-0 top-0 size-3 text-secondary-foreground" /> <LuSave className="absolute left-0 top-0 size-3 text-secondary-foreground" />