V16: Fix issue not display hidden tab name (#19370)

Fix issue not display hidden tab name

Co-authored-by: Lan Nguyen Thuy <lnt@umbraco.dk>
Co-authored-by: leekelleher <leekelleher@gmail.com>
This commit is contained in:
NguyenThuyLan
2025-07-31 21:29:41 +07:00
committed by GitHub
parent ce7ce10d64
commit 4483f47668

View File

@@ -131,10 +131,10 @@ export class UmbContentWorkspaceViewEditElement extends UmbLitElement implements
${this._hasRootGroups && this._tabs.length > 0
? html`
<uui-tab
.label=${this.localize.term('general_generic')}
label=${this.localize.term('general_generic')}
.active=${this._routerPath + '/root' === this._activePath ||
this._routerPath + '/' === this._activePath}
.href=${this._routerPath + '/root'}></uui-tab>
href=${this._routerPath + '/root'}></uui-tab>
`
: ''}
${repeat(
@@ -143,10 +143,10 @@ export class UmbContentWorkspaceViewEditElement extends UmbLitElement implements
(tab, index) => {
const path = this._routerPath + '/tab/' + encodeFolderName(tab.name || '');
return html`<uui-tab
.label=${this.localize.string(tab.name ?? '#general_unnamed')}
label=${this.localize.string(tab.name ?? '#general_unnamed')}
.active=${path === this._activePath ||
(!this._hasRootGroups && index === 0 && this._routerPath + '/' === this._activePath)}
.href=${path}></uui-tab>`;
href=${path}></uui-tab>`;
},
)}
</uui-tab-group>`