More BP tweaks (#7884)

This commit is contained in:
Bram Kragten 2020-12-03 16:59:43 +01:00 committed by GitHub
parent 2cca25f4d0
commit 1e90c6387c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 14 deletions

View File

@ -111,6 +111,9 @@ class HaBluePrintPicker extends LitElement {
paper-listbox { paper-listbox {
min-width: 200px; min-width: 200px;
} }
paper-item {
cursor: pointer;
}
`; `;
} }
} }

View File

@ -24,7 +24,6 @@ import "./action/ha-automation-action";
import { fireEvent } from "../../../common/dom/fire_event"; import { fireEvent } from "../../../common/dom/fire_event";
import { haStyle } from "../../../resources/styles"; import { haStyle } from "../../../resources/styles";
import { HassEntity } from "home-assistant-js-websocket"; import { HassEntity } from "home-assistant-js-websocket";
import { navigate } from "../../../common/navigate";
import { import {
BlueprintOrError, BlueprintOrError,
Blueprints, Blueprints,
@ -144,11 +143,6 @@ export class HaBlueprintAutomationEditor extends LitElement {
"ui.panel.config.automation.editor.blueprint.no_blueprints" "ui.panel.config.automation.editor.blueprint.no_blueprints"
) )
: html`<ha-circular-progress active></ha-circular-progress>`} : html`<ha-circular-progress active></ha-circular-progress>`}
<mwc-button @click=${this._navigateBlueprints}>
${this.hass.localize(
"ui.panel.config.automation.editor.blueprint.manage_blueprints"
)}
</mwc-button>
</div> </div>
${this.config.use_blueprint.path ${this.config.use_blueprint.path
@ -263,10 +257,6 @@ export class HaBlueprintAutomationEditor extends LitElement {
}); });
} }
private _navigateBlueprints() {
navigate(this, "/config/blueprint");
}
static get styles(): CSSResult[] { static get styles(): CSSResult[] {
return [ return [
haStyle, haStyle,
@ -276,9 +266,6 @@ export class HaBlueprintAutomationEditor extends LitElement {
} }
.blueprint-picker-container { .blueprint-picker-container {
padding: 16px; padding: 16px;
display: flex;
align-items: center;
justify-content: space-between;
} }
h3 { h3 {
margin: 16px; margin: 16px;

View File

@ -59,6 +59,9 @@ export class HuiThemeSelectEditor extends LitElement {
paper-dropdown-menu { paper-dropdown-menu {
width: 100%; width: 100%;
} }
paper-item {
cursor: pointer;
}
`; `;
} }

View File

@ -1160,7 +1160,6 @@
"header": "Blueprint", "header": "Blueprint",
"blueprint_to_use": "Blueprint to use", "blueprint_to_use": "Blueprint to use",
"no_blueprints": "You don't have any blueprints", "no_blueprints": "You don't have any blueprints",
"manage_blueprints": "Manage Blueprints",
"no_inputs": "This blueprint doesn't have any inputs." "no_inputs": "This blueprint doesn't have any inputs."
}, },
"modes": { "modes": {