mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-15 21:36:36 +00:00
Move YAML to first tab of Developer Tools (#12589)
This commit is contained in:
parent
9ed069ef6a
commit
ca37aff47d
@ -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;
|
||||
},
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user