Sort of fixed battery icons

This commit is contained in:
Zakary Timson 2018-11-15 13:02:28 -05:00
parent 6d6fe18465
commit bdade31d4e

View File

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