From bdade31d4e62982cdb28194b1339e1ae61581808 Mon Sep 17 00:00:00 2001 From: Zak Timson Date: Thu, 15 Nov 2018 13:02:28 -0500 Subject: [PATCH] Sort of fixed battery icons --- src/app/battery/battery.service.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/battery/battery.service.ts b/src/app/battery/battery.service.ts index 7aac8da..b24c78c 100644 --- a/src/app/battery/battery.service.ts +++ b/src/app/battery/battery.service.ts @@ -27,13 +27,11 @@ export class BatteryService { }); } - - get icon() { if (!this.batteries.length) return 'battery_alert'; - if (!this.last || this.last.getTime() < new Date().setMinutes(new Date().getMinutes() - 2).getTime()) return 'battery_warn'; + if (!this.last) return 'battery_warn'; - return 'battery_20'; + return 'battery_full'; let temp = 'battery'; //if (this.batteries.length) temp += '_charging'; @@ -56,7 +54,4 @@ export class BatteryService { return temp; } - - constructor() { - } }