Fix moderation queue tab switch reload

This commit is contained in:
gpt-engineer-app[bot]
2025-10-11 17:20:35 +00:00
parent f9e12596c7
commit 10950a4034
3 changed files with 42 additions and 8 deletions

View File

@@ -0,0 +1,11 @@
-- Add admin setting to control auto-refresh on tab visibility change
INSERT INTO admin_settings (setting_key, setting_value, category, description, created_at, updated_at)
VALUES (
'system.refresh_on_tab_visible',
'false',
'system',
'Auto-refresh moderation queue when returning to tab (default: false, realtime handles updates)',
now(),
now()
)
ON CONFLICT (setting_key) DO NOTHING;