From 42bb6ce0c025e8cb0e7e24f9b507837603a0ce5d Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Tue, 20 Oct 2020 00:34:54 -0500 Subject: [PATCH 1/2] fix tap_action for app icons fixes #52 --- src/roku-card.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/roku-card.ts b/src/roku-card.ts index 6c2e2c2..c023e75 100644 --- a/src/roku-card.ts +++ b/src/roku-card.ts @@ -164,6 +164,7 @@ export class RokuCard extends LitElement { .app=${this._config.apps[index].app} icon=${this._config.apps[index].icon!} title=${this._config.apps[index].app!} + .config=${this._config.apps[index]} @action=${this._handleAction} .actionHandler=${actionHandler({ hasHold: hasAction(this._config.apps[index].hold_action), From 79297eb25ab81c7ee5e1d1d3e4dc6dbbfcc3c924 Mon Sep 17 00:00:00 2001 From: Ian Richardson Date: Tue, 20 Oct 2020 00:38:30 -0500 Subject: [PATCH 2/2] lint --- src/roku-card.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/roku-card.ts b/src/roku-card.ts index c023e75..a4b3f91 100644 --- a/src/roku-card.ts +++ b/src/roku-card.ts @@ -57,9 +57,7 @@ export class RokuCard extends LitElement {
-
- ${stateObj ? stateObj.attributes.app_name : ''} -
+
${stateObj ? stateObj.attributes.app_name : ''}
${this._config.tv || (this._config.power && this._config.power.show) ? this._renderButton('power', 'mdi:power', 'Power') : ''} @@ -162,8 +160,8 @@ export class RokuCard extends LitElement { ? html`