@@ -30,6 +30,7 @@ import { CoreNetwork } from '@services/network';
3030import { CoreLoginHelper } from '@features/login/services/login-helper' ;
3131import { CoreSitesFactory } from '@services/sites-factory' ;
3232import { CoreText } from '@singletons/text' ;
33+ import { GestureDetail } from '@ionic/angular' ;
3334
3435/**
3536 * Device Info to be shown and copied to clipboard.
@@ -51,7 +52,7 @@ interface CoreSettingsDeviceInfo {
5152 locationHref ?: string ;
5253 deviceType : string ;
5354 screen ?: string ;
54- networkStatus : string ;
55+ isOnline : boolean ;
5556 wifiConnection : string ;
5657 cordovaVersion ?: string ;
5758 platform ?: string ;
@@ -93,7 +94,7 @@ export class CoreSettingsDeviceInfoPage implements OnDestroy {
9394 versionCode : CoreConstants . CONFIG . versioncode ,
9495 compilationTime : CoreConstants . BUILD . compilationTime || 0 ,
9596 lastCommit : CoreConstants . BUILD . lastCommitHash || '' ,
96- networkStatus : CoreNetwork . isOnline ( ) ? 'online' : 'offline' ,
97+ isOnline : CoreNetwork . isOnline ( ) ,
9798 wifiConnection : CoreNetwork . isWifi ( ) ? 'yes' : 'no' ,
9899 localNotifAvailable : CoreLocalNotifications . isPluginAvailable ( ) ? 'yes' : 'no' ,
99100 pushId : CorePushNotifications . getPushId ( ) ,
@@ -172,7 +173,7 @@ export class CoreSettingsDeviceInfoPage implements OnDestroy {
172173 this . onlineObserver = CoreNetwork . onChange ( ) . subscribe ( ( ) => {
173174 // Execute the callback in the Angular zone, so change detection doesn't stop working.
174175 NgZone . run ( ( ) => {
175- this . deviceInfo . networkStatus = CoreNetwork . isOnline ( ) ? 'online' : 'offline' ;
176+ this . deviceInfo . isOnline = CoreNetwork . isOnline ( ) ;
176177 } ) ;
177178 } ) ;
178179
@@ -225,8 +226,8 @@ export class CoreSettingsDeviceInfoPage implements OnDestroy {
225226 *
226227 * @param e Event.
227228 */
228- copyItemInfo ( e : Event ) : void {
229- const el = < Element > e . target ;
229+ copyItemInfo ( e : GestureDetail ) : void {
230+ const el = < Element > e . event . target ;
230231 const text = el ?. closest ( 'ion-item' ) ?. textContent ?. trim ( ) ;
231232
232233 text && CoreText . copyToClipboard ( text ) ;
0 commit comments