diff --git a/shared/components/rstack-space-switcher.ts b/shared/components/rstack-space-switcher.ts index e087e85..ace79d6 100644 --- a/shared/components/rstack-space-switcher.ts +++ b/shared/components/rstack-space-switcher.ts @@ -131,8 +131,20 @@ export class RStackSpaceSwitcher extends HTMLElement { return s.name; } + #demoSpaceHTML(current: string, moduleId: string): string { + const isActive = current === "demo"; + return ` + + + Demo Space + 👁 + `; + } + #renderMenu(menu: HTMLElement, current: string) { const auth = isAuthenticated(); + const moduleId = this.#getCurrentModule(); if (this.#spaces.length === 0) { let cta = ""; @@ -144,6 +156,8 @@ export class RStackSpaceSwitcher extends HTMLElement { cta = this.#yourSpaceCTAhtml(label); } menu.innerHTML = ` + ${this.#demoSpaceHTML(current, moduleId)} +
${cta}