Fix: add grid_size to allowed backend settings and remove auto-save
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m20s
All checks were successful
Automated Container Build / build-and-push (push) Successful in 1m20s
This commit is contained in:
parent
2778b1ab62
commit
f9b0f515c5
2 changed files with 1 additions and 2 deletions
|
|
@ -40,6 +40,7 @@ func (h *SettingsHandler) UpdateSettings(c *fiber.Ctx) error {
|
|||
|
||||
allowedKeys := map[string]bool{
|
||||
"theme": true,
|
||||
"grid_size": true,
|
||||
"trash_auto_purge_days": true,
|
||||
"pinned_sidebar_expanded": true,
|
||||
"pinned_order": true,
|
||||
|
|
|
|||
|
|
@ -136,8 +136,6 @@ export default function SettingsPage({ onLogout }: SettingsPageProps) {
|
|||
step="10"
|
||||
value={settings.grid_size}
|
||||
onChange={(e) => setSettings({ ...settings, grid_size: e.target.value })}
|
||||
onMouseUp={handleSave}
|
||||
onTouchEnd={handleSave}
|
||||
className="w-full max-w-xs accent-[var(--color-accent)]"
|
||||
/>
|
||||
</div>
|
||||
|
|
|
|||
Reference in a new issue