Move YAML to first tab of Developer Tools (#12589)

This commit is contained in:
Zack Barett 2022-05-09 08:07:17 -05:00 committed by GitHub
parent 9ed069ef6a
commit ca37aff47d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ class DeveloperToolsRouter extends HassRouterPage {
beforeRender: (page) => {
if (!page || page === "not_found") {
// If we can, we are going to restore the last visited page.
return this._currentPage ? this._currentPage : "state";
return this._currentPage ? this._currentPage : "yaml";
}
return undefined;
},

View File

@ -42,6 +42,9 @@ class PanelDeveloperTools extends LitElement {
.selected=${page}
@iron-activate=${this.handlePageSelected}
>
<paper-tab page-name="yaml">
${this.hass.localize("ui.panel.developer-tools.tabs.yaml.title")}
</paper-tab>
<paper-tab page-name="state">
${this.hass.localize(
"ui.panel.developer-tools.tabs.states.title"
@ -67,9 +70,6 @@ class PanelDeveloperTools extends LitElement {
"ui.panel.developer-tools.tabs.statistics.title"
)}
</paper-tab>
<paper-tab page-name="yaml">
${this.hass.localize("ui.panel.developer-tools.tabs.yaml.title")}
</paper-tab>
</ha-tabs>
</app-header>
<developer-tools-router