Sort of fixed battery icons
This commit is contained in:
		@@ -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() {
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user