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

This commit is contained in:
G30 2026-02-13 12:18:58 -05:00 • committed by GitHub
parent 4d5b7b3014
commit ddcec9842f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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;
}