mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 00:36:34 +00:00
Refactor
This commit is contained in:
parent
9b9b2f0710
commit
ad55bae212
@ -5,14 +5,12 @@ import { HaIcon } from "./ha-icon";
|
|||||||
|
|
||||||
export class HaIconNext extends HaIcon {
|
export class HaIconNext extends HaIcon {
|
||||||
public connectedCallback() {
|
public connectedCallback() {
|
||||||
super.connectedCallback();
|
|
||||||
|
|
||||||
this.icon =
|
this.icon =
|
||||||
window.getComputedStyle(this).direction === "ltr"
|
window.getComputedStyle(this).direction === "ltr"
|
||||||
? "hass:chevron-right"
|
? "hass:chevron-right"
|
||||||
: "hass:chevron-left";
|
: "hass:chevron-left";
|
||||||
|
|
||||||
this.fire("iron-resize");
|
super.connectedCallback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,14 +5,12 @@ import { HaIcon } from "./ha-icon";
|
|||||||
|
|
||||||
export class HaIconPrev extends HaIcon {
|
export class HaIconPrev extends HaIcon {
|
||||||
public connectedCallback() {
|
public connectedCallback() {
|
||||||
super.connectedCallback();
|
|
||||||
|
|
||||||
this.icon =
|
this.icon =
|
||||||
window.getComputedStyle(this).direction === "ltr"
|
window.getComputedStyle(this).direction === "ltr"
|
||||||
? "hass:chevron-left"
|
? "hass:chevron-left"
|
||||||
: "hass:chevron-right";
|
: "hass:chevron-right";
|
||||||
|
|
||||||
this.fire("iron-resize");
|
super.connectedCallback();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user