Skip to content

Commit

Permalink
Move YAML to first tab of Developer Tools (home-assistant#12589)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsarnett authored May 9, 2022
1 parent 9ed069e commit ca37aff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/panels/developer-tools/developer-tools-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
},
Expand Down
6 changes: 3 additions & 3 deletions src/panels/developer-tools/ha-panel-developer-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit ca37aff

Please sign in to comment.