Hide single-tab bar on Packs workspace view

When no pack is selected, the tab bar showed only one "Workspace" tab
which is pointless. Now tabs are conditionally rendered only when a
pack is opened (6 tabs: Dashboard, Edit, Rules, YAML, Approvals,
Simulate). Also removed urlParam="tab" to prevent double-navigation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-03-28 20:40:58 +02:00
parent 8746174553
commit 34b1e50c51

View File

@@ -54,15 +54,18 @@ const PACK_DETAIL_TABS: readonly StellaPageTab[] = [
</div> </div>
</header> </header>
<stella-page-tabs @if (packId()) {
[tabs]="pageTabs()" <stella-page-tabs
[activeTab]="activeSubview()" [tabs]="pageTabs()"
urlParam="tab" [activeTab]="activeSubview()"
ariaLabel="Pack tabs" ariaLabel="Pack tabs"
(tabChange)="onTabChange($event)" (tabChange)="onTabChange($event)"
> >
<router-outlet />
</stella-page-tabs>
} @else {
<router-outlet /> <router-outlet />
</stella-page-tabs> }
</section> </section>
`, `,
styles: [` styles: [`