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() { - } }