mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-09 03:18:18 +00:00
fix: ensure sync modal only triggers if community sharing is enabled (#21376)
This commit is contained in:
parent
4d5b7b3014
commit
ddcec9842f
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue