Sort of fixed battery icons
This commit is contained in:
parent
6d6fe18465
commit
bdade31d4e
@ -27,13 +27,11 @@ export class BatteryService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
get icon() {
|
get icon() {
|
||||||
if (!this.batteries.length) return 'battery_alert';
|
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';
|
let temp = 'battery';
|
||||||
//if (this.batteries.length) temp += '_charging';
|
//if (this.batteries.length) temp += '_charging';
|
||||||
@ -56,7 +54,4 @@ export class BatteryService {
|
|||||||
|
|
||||||
return temp;
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor() {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user