feat: complete remediation phase 3
Some checks failed
Automated Container Build / build-and-push (push) Failing after 15s

This commit is contained in:
Elijah 2026-05-26 14:23:50 -07:00
parent 0221e277a6
commit 6772ba8c43
10 changed files with 63 additions and 20 deletions

View file

@ -72,7 +72,14 @@ export default function SettingsPage({ onLogout }: SettingsPageProps) {
setSuccess(false);
try {
await api.updateSettings(settings);
const existing = await api.getSettings();
const merged = {
...(existing?.settings || existing || {}),
theme: settings.theme,
grid_size: settings.grid_size,
trash_auto_purge_days: settings.trash_auto_purge_days,
};
await api.updateSettings(merged);
setSuccess(true);
setTimeout(() => setSuccess(false), 3000);
applyTheme(settings.theme);