Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 0 additions & 2 deletions js/plugin/browser-player.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { property } from "lit/decorators.js";

import "./browser-player-editor.ts";

import "./types";

class BrowserPlayer extends LitElement {
@property() hass;
@property({ attribute: "edit-mode", reflect: true }) editMode;
Expand Down
2 changes: 1 addition & 1 deletion js/plugin/dashboard-cards/tile-card.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { html, LitElement, nothing, PropertyValues } from "lit";
import { until } from 'lit/directives/until.js';
import { property, state } from "lit/decorators.js";
import { LovelaceCard, LovelaceGridOptions } from "../types";
import { BrowserModTileCardEditor } from "./tile-card-editor";
import structuredClone from "@ungap/structured-clone";
import { getLovelaceRoot } from "../../helpers";
import { LovelaceGridOptions, LovelaceCard } from "../../types/types";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to move types.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not necessary, but it would be nice, because it would mean that the project would at least follow the structural standards to some respects.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tile-card should have no changes now with types not moving.


export class BrowserModTileCard extends LitElement {
@property() hass;
Expand Down
24 changes: 15 additions & 9 deletions js/plugin/popup-card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "./popup-card-editor";
import { getLovelaceRoot } from "../helpers";
import { repeat } from "lit/directives/repeat.js";
import { ifDefined } from 'lit/directives/if-defined.js';
import { icon } from "./types";
import { IconProps } from "../types/types";
import { findPopupCardConfigByEntity } from "./popup-card-helpers";

class PopupCard extends LitElement {
Expand Down Expand Up @@ -72,7 +72,7 @@ class PopupCard extends LitElement {
${this._config.icons
? repeat(
this._config.icons,
(icon: icon, index) => html`
(icon: IconProps, index) => html`
<ha-icon-button
.title=${icon.title ?? ""}
class=${ifDefined(icon.class)}
Expand Down Expand Up @@ -256,14 +256,20 @@ window.addEventListener("browser-mod-bootstrap", async (ev: CustomEvent) => {
ev.preventDefault();
let properties = { ...cardConfig }
delete properties.card;
window.browser_mod?.service("popup", {
content: cardConfig.card,
...properties,
});
setTimeout(
() => {
window.browser_mod?.showMoreInfo('', '', false, false, true);
window.browser_mod?.service("popup", {
content: cardConfig.card,
...properties,
});
},
() =>
lovelaceRoot.dispatchEvent(
new CustomEvent("hass-more-info", {
bubbles: true,
composed: true,
cancelable: false,
detail: { entityId: "" },
})
),
10
);
}
Expand Down
Loading