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
1 change: 1 addition & 0 deletions hassio/src/addon-store/hassio-addon-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class HassioAddonStore extends LitElement {
.narrow=${this.narrow}
.route=${this.route}
hassio
main-page
.tabs=${supervisorTabs}
>
<span slot="header">Add-on store</span>
Expand Down
1 change: 1 addition & 0 deletions hassio/src/dashboard/hassio-dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class HassioDashboard extends LitElement {
.hass=${this.hass}
.narrow=${this.narrow}
hassio
main-page
.route=${this.route}
.tabs=${supervisorTabs}
>
Expand Down
1 change: 1 addition & 0 deletions hassio/src/snapshots/hassio-snapshots.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ class HassioSnapshots extends LitElement {
.hass=${this.hass}
.narrow=${this.narrow}
hassio
main-page
.route=${this.route}
.tabs=${supervisorTabs}
>
Expand Down
1 change: 1 addition & 0 deletions hassio/src/system/hassio-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class HassioSystem extends LitElement {
.hass=${this.hass}
.narrow=${this.narrow}
hassio
main-page
.route=${this.route}
.tabs=${supervisorTabs}
>
Expand Down
22 changes: 17 additions & 5 deletions src/layouts/hass-tabs-subpage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ class HassTabsSubpage extends LitElement {

@property({ type: Boolean }) public hassio = false;

@property({ type: Boolean, attribute: "main-page" }) public mainPage = false;

@property() public route!: Route;

@property() public tabs!: PageNavigation[];
Expand Down Expand Up @@ -114,11 +116,21 @@ class HassTabsSubpage extends LitElement {

return html`
<div class="toolbar">
<ha-paper-icon-button-arrow-prev
aria-label="Back"
.hassio=${this.hassio}
@click=${this._backTapped}
></ha-paper-icon-button-arrow-prev>
${this.mainPage
? html`
<ha-menu-button
.hass=${this.hass}
.hassio=${this.hassio}
.narrow=${this.narrow}
></ha-menu-button>
`
: html`
<ha-paper-icon-button-arrow-prev
aria-label="Back"
.hassio=${this.hassio}
@click=${this._backTapped}
></ha-paper-icon-button-arrow-prev>
`}
${this.narrow
? html` <div class="main-title"><slot name="header"></slot></div> `
: ""}
Expand Down