fix: ensure sync modal only triggers if community sharing is enabled (#21376)

This commit is contained in:
G30
2026-02-13 11:18:58 -06:00
committed by GitHub
parent 4d5b7b3014
commit ddcec9842f
+5 -1
View File
@@ -849,7 +849,11 @@
}
// Auto-show SyncStatsModal when opened with ?sync=true (from community)
if ((window.opener ?? false) && $page.url.searchParams.get('sync') === 'true') {
if (
(window.opener ?? false) &&
$page.url.searchParams.get('sync') === 'true' &&
($config?.features?.enable_community_sharing ?? false)
) {
showSyncStatsModal = true;
}