This commit is contained in:
Yosi Levy 2019-02-15 21:07:42 +02:00
parent 9b9b2f0710
commit ad55bae212
2 changed files with 2 additions and 6 deletions

View File

@ -5,14 +5,12 @@ import { HaIcon } from "./ha-icon";
export class HaIconNext extends HaIcon {
public connectedCallback() {
super.connectedCallback();
this.icon =
window.getComputedStyle(this).direction === "ltr"
? "hass:chevron-right"
: "hass:chevron-left";
this.fire("iron-resize");
super.connectedCallback();
}
}

View File

@ -5,14 +5,12 @@ import { HaIcon } from "./ha-icon";
export class HaIconPrev extends HaIcon {
public connectedCallback() {
super.connectedCallback();
this.icon =
window.getComputedStyle(this).direction === "ltr"
? "hass:chevron-left"
: "hass:chevron-right";
this.fire("iron-resize");
super.connectedCallback();
}
}