mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-19 15:26:36 +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 {
|
||||
public connectedCallback() {
|
||||
super.connectedCallback();
|
||||
|
||||
this.icon =
|
||||
window.getComputedStyle(this).direction === "ltr"
|
||||
? "hass:chevron-right"
|
||||
: "hass:chevron-left";
|
||||
|
||||
this.fire("iron-resize");
|
||||
super.connectedCallback();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user