forked from CIT/Vmeda.Online
		
	MOBILE-3320 airnotifier: Improve devices screen
This commit is contained in:
		
							parent
							
								
									ed6044ad28
								
							
						
					
					
						commit
						d60eddf410
					
				@ -12,10 +12,13 @@
 | 
			
		||||
    </ion-refresher>
 | 
			
		||||
    <core-loading [hideUntil]="devicesLoaded">
 | 
			
		||||
        <ion-list>
 | 
			
		||||
            <ion-item class="ion-text-wrap" *ngFor="let device of devices">
 | 
			
		||||
            <ion-item class="ion-text-wrap" *ngFor="let device of devices" [class.item-current]="device.current">
 | 
			
		||||
                <ion-label [class.core-bold]="device.current">
 | 
			
		||||
                    {{ device.name }} {{ device.model }} {{ device.platform }} {{ device.version }}
 | 
			
		||||
                    <span *ngIf="device.current">({{ 'core.currentdevice' | translate }})</span>
 | 
			
		||||
                    <p class="item-heading">
 | 
			
		||||
                        {{ device.name }} {{ device.model }}
 | 
			
		||||
                        <span *ngIf="device.current">({{ 'core.currentdevice' | translate }})</span>
 | 
			
		||||
                    </p>
 | 
			
		||||
                    <p>{{ device.platform }} {{ device.version }}</p>
 | 
			
		||||
                </ion-label>
 | 
			
		||||
                <core-button-with-spinner [loading]="device.updating" slot="end">
 | 
			
		||||
                    <ion-toggle
 | 
			
		||||
 | 
			
		||||
@ -74,7 +74,12 @@ export class AddonMessageOutputAirnotifierDevicesPage implements OnInit, OnDestr
 | 
			
		||||
            device.current = !!(pushId && pushId == device.pushid);
 | 
			
		||||
        });
 | 
			
		||||
 | 
			
		||||
        return formattedDevices;
 | 
			
		||||
        return formattedDevices.sort((a, b) => {
 | 
			
		||||
            const compareA = a.name.toLowerCase();
 | 
			
		||||
            const compareB = b.name.toLowerCase();
 | 
			
		||||
 | 
			
		||||
            return compareA.localeCompare(compareB);
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user