mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 22:31:12 -05:00
Fix moderation queue tab switch reload
This commit is contained in:
@@ -157,6 +157,12 @@ export function useAdminSettings() {
|
||||
return cleanValue === 'true' || cleanValue === true;
|
||||
};
|
||||
|
||||
const getRefreshOnTabVisible = (): boolean => {
|
||||
const value = getSettingValue('system.refresh_on_tab_visible', 'false');
|
||||
const cleanValue = typeof value === 'string' ? value.replace(/"/g, '') : value;
|
||||
return cleanValue === 'true' || cleanValue === true;
|
||||
};
|
||||
|
||||
return {
|
||||
settings,
|
||||
isLoading,
|
||||
@@ -180,5 +186,6 @@ export function useAdminSettings() {
|
||||
getAutoRefreshStrategy,
|
||||
getPreserveInteractionState,
|
||||
getUseRealtimeQueue,
|
||||
getRefreshOnTabVisible,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user