fix(spaces): filter disabled modules from both rApp dropdowns
renderExternalAppShell was passing the full unfiltered module list to both the app-switcher and tab-bar dropdowns. Now filters by the space's enabledModules, matching the existing renderShell behavior. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2ab620fcc5
commit
f08b72268b
|
|
@ -1297,7 +1297,12 @@ export function renderExternalAppShell(opts: ExternalAppShellOptions): string {
|
||||||
theme = "dark",
|
theme = "dark",
|
||||||
} = opts;
|
} = opts;
|
||||||
|
|
||||||
const moduleListJSON = JSON.stringify(modules);
|
// Filter modules by space's enabledModules (same logic as renderShell)
|
||||||
|
const enabledModules = getSpaceShellMeta(spaceSlug).enabledModules;
|
||||||
|
const visibleModules = enabledModules
|
||||||
|
? modules.filter(m => m.id === "rspace" || enabledModules.includes(m.id))
|
||||||
|
: modules;
|
||||||
|
const moduleListJSON = JSON.stringify(visibleModules);
|
||||||
const demoUrl = `?view=demo`;
|
const demoUrl = `?view=demo`;
|
||||||
|
|
||||||
return versionAssetUrls(`<!DOCTYPE html>
|
return versionAssetUrls(`<!DOCTYPE html>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue