Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
import { fireEvent, HomeAssistant, LovelaceCardEditor } from "custom-card-helpers";

import { HuiCardElementEditor, LocalConditionalCardConfig, TranslatableString } from "./types";
import { customElement, property, state, query } from "lit/decorators";

Check warning on line 6 in src/editor.ts

View workflow job for this annotation

GitHub Actions / Build

'query' is defined but never used

Check warning on line 6 in src/editor.ts

View workflow job for this annotation

GitHub Actions / Build

'state' is defined but never used

Check warning on line 6 in src/editor.ts

View workflow job for this annotation

GitHub Actions / Build

'property' is defined but never used

Check warning on line 6 in src/editor.ts

View workflow job for this annotation

GitHub Actions / Build

'customElement' is defined but never used
import { CARD_VERSION, DEFAULT_ID, HIDE, SHOW } from "./const";
import { localizeWithHass } from "./localize/localize";

@customElement("local-conditional-card-editor")
export class LocalConditionalCardEditor extends LitElement implements LovelaceCardEditor {

Check warning on line 11 in src/editor.ts

View workflow job for this annotation

GitHub Actions / Build

'LocalConditionalCardEditor' is defined but never used
@property({ attribute: false }) public hass?: HomeAssistant;

@property() lovelace;
Expand Down Expand Up @@ -69,14 +69,14 @@
return html`
<div class="card-config">
<div class="toolbar">
<sl-tab-group @sl-tab-show=${this._selectTab}>
<sl-tab slot="nav" panel="conditions" .active=${!this._cardTab}>
<ha-tab-group @wa-tab-show=${this._selectTab}>
<ha-tab-group-tab slot="nav" panel="conditions" .active=${!this._cardTab}>
${this.hass?.localize("ui.panel.lovelace.editor.card.conditional.conditions")}
</sl-tab>
<sl-tab slot="nav" panel="card" .active=${this._cardTab}>
</ha-tab-group-tab>
<ha-tab-group-tab slot="nav" panel="card" .active=${this._cardTab}>
${this.hass?.localize("ui.panel.lovelace.editor.card.conditional.card")}
</sl-tab>
</sl-tab-group>
</ha-tab-group-tab>
</ha-tab-group>
</div>
<div id="editor">${this._cardTab ? this._renderCardChooser() : this._renderCardConfig()}</div>
</div>
Expand Down Expand Up @@ -254,11 +254,11 @@
}

static styles: CSSResultGroup = css`
sl-tab {
ha-tab {
flex: 1;
}

sl-tab::part(base) {
ha-tab::part(base) {
width: 100%;
justify-content: center;
}
Expand Down
Loading