mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 04:46:34 +00:00
On larger screens, move traces button out of the overflow menu (#13597)
This commit is contained in:
parent
3ef567dcd5
commit
8ee9655bd5
@ -1,3 +1,4 @@
|
|||||||
|
import "@material/mwc-button";
|
||||||
import "@material/mwc-list/mwc-list-item";
|
import "@material/mwc-list/mwc-list-item";
|
||||||
import {
|
import {
|
||||||
mdiCheck,
|
mdiCheck,
|
||||||
@ -125,6 +126,21 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
"ui.panel.config.automation.editor.default_name"
|
"ui.panel.config.automation.editor.default_name"
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
|
${this._config?.id && !this.narrow
|
||||||
|
? html`
|
||||||
|
<a
|
||||||
|
class="trace-link"
|
||||||
|
href="/config/automation/trace/${this._config.id}"
|
||||||
|
slot="toolbar-icon"
|
||||||
|
>
|
||||||
|
<mwc-button>
|
||||||
|
${this.hass.localize(
|
||||||
|
"ui.panel.config.automation.editor.show_trace"
|
||||||
|
)}
|
||||||
|
</mwc-button>
|
||||||
|
</a>
|
||||||
|
`
|
||||||
|
: ""}
|
||||||
<ha-button-menu corner="BOTTOM_START" slot="toolbar-icon">
|
<ha-button-menu corner="BOTTOM_START" slot="toolbar-icon">
|
||||||
<ha-icon-button
|
<ha-icon-button
|
||||||
slot="trigger"
|
slot="trigger"
|
||||||
@ -149,7 +165,7 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
<ha-svg-icon slot="graphic" .path=${mdiPlay}></ha-svg-icon>
|
<ha-svg-icon slot="graphic" .path=${mdiPlay}></ha-svg-icon>
|
||||||
</mwc-list-item>
|
</mwc-list-item>
|
||||||
|
|
||||||
${stateObj && this._config
|
${stateObj && this._config && this.narrow
|
||||||
? html`<a href="/config/automation/trace/${this._config.id}">
|
? html`<a href="/config/automation/trace/${this._config.id}">
|
||||||
<mwc-list-item graphic="icon">
|
<mwc-list-item graphic="icon">
|
||||||
${this.hass.localize(
|
${this.hass.localize(
|
||||||
@ -659,6 +675,9 @@ export class HaAutomationEditor extends KeyboardShortcutMixin(LitElement) {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding-bottom: 0;
|
padding-bottom: 0;
|
||||||
}
|
}
|
||||||
|
.trace-link {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
manual-automation-editor,
|
manual-automation-editor,
|
||||||
blueprint-automation-editor {
|
blueprint-automation-editor {
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user