Преглед изворни кода

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

Fixes #372
Danilo Bargen пре 8 година
родитељ
комит
3b46db7c1b
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/directives/battery.ts

+ 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 => {