Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ export class UmbBlockWorkspaceViewEditContentNoRouterElement extends UmbLitEleme
? html`<uui-tab
label=${this.localize.term('general_generic')}
.active=${this._activeTabKey === null}
@click=${() => this.#setTabKey(null)}
>Content</uui-tab
>`
@click=${() => this.#setTabKey(null)}></uui-tab>`
: nothing}
${repeat(
this._tabs,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,15 @@ export class UmbBlockWorkspaceViewEditElement extends UmbLitElement implements U
if (!this._routes || !this._tabs) return;
return html`
<umb-body-layout header-fit-height>
${this._routerPath && (this._tabs.length > 1 || (this._tabs.length === 1 && (this._hasRootGroups || this._hasRootProperties)))
${this._routerPath &&
(this._tabs.length > 1 || (this._tabs.length === 1 && (this._hasRootGroups || this._hasRootProperties)))
? html` <uui-tab-group slot="header">
${(this._hasRootGroups || this._hasRootProperties) && this._tabs.length > 0
? html`
<uui-tab
label="Content"
label=${this.localize.term('general_generic')}
.active=${this._routerPath + '/' === this._activePath}
href=${this._routerPath + '/'}>
<umb-localize key="general_content">Content</umb-localize>
</uui-tab>
href=${this._routerPath + '/'}></uui-tab>
`
: ''}
${repeat(
Expand Down
Loading