Эх сурвалжийг харах

Don't fade battery icon when charging (#384)

Fixes #372
Danilo Bargen 8 жил өмнө
parent
commit
3b46db7c1b

+ 1 - 1
src/directives/battery.ts

@@ -30,7 +30,7 @@ export default [
             controllerAs: 'ctrl',
             controller: [function() {
                 this.available = () => batteryStatusService.dataAvailable;
-                this.alert = () => batteryStatusService.isLow;
+                this.alert = () => batteryStatusService.isLow && !batteryStatusService.isCharging;
                 this.percent = () => batteryStatusService.percent;
 
                 this.description = (): string => {