mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix infinite loader on sessions load
This commit is contained in:
committed by
Aiden McClelland
parent
9a77bf6496
commit
860d425b53
@@ -1,5 +1,5 @@
|
|||||||
import { Component } from '@angular/core'
|
import { Component } from '@angular/core'
|
||||||
import { AlertController, getPlatforms, LoadingController } from '@ionic/angular'
|
import { AlertController, LoadingController } from '@ionic/angular'
|
||||||
import { ErrorToastService } from 'src/app/services/error-toast.service'
|
import { ErrorToastService } from 'src/app/services/error-toast.service'
|
||||||
import { ApiService } from 'src/app/services/api/embassy/embassy-api.service'
|
import { ApiService } from 'src/app/services/api/embassy/embassy-api.service'
|
||||||
import { PlatformType, RR } from 'src/app/services/api/api.types'
|
import { PlatformType, RR } from 'src/app/services/api/api.types'
|
||||||
@@ -21,9 +21,13 @@ export class SessionsPage {
|
|||||||
) { }
|
) { }
|
||||||
|
|
||||||
async ngOnInit () {
|
async ngOnInit () {
|
||||||
getPlatforms()
|
try {
|
||||||
this.sessionInfo = await this.embassyApi.getSessions({ })
|
this.sessionInfo = await this.embassyApi.getSessions({ })
|
||||||
this.loading = false
|
} catch (e) {
|
||||||
|
this.errToast.present(e.message)
|
||||||
|
} finally {
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
async presentAlertKill (hash: string) {
|
async presentAlertKill (hash: string) {
|
||||||
|
|||||||
Reference in New Issue
Block a user