mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
pr review
This commit is contained in:
committed by
Drew Ansbacher
parent
13d9293f57
commit
a256a48776
@@ -14,7 +14,6 @@ export class EmbassyPage {
|
|||||||
storageDrives = []
|
storageDrives = []
|
||||||
selectedDrive: DiskInfo = null
|
selectedDrive: DiskInfo = null
|
||||||
loading = true
|
loading = true
|
||||||
window = window
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private readonly apiService: ApiService,
|
private readonly apiService: ApiService,
|
||||||
@@ -41,7 +40,6 @@ export class EmbassyPage {
|
|||||||
try {
|
try {
|
||||||
this.storageDrives = await this.apiService.getDrives()
|
this.storageDrives = await this.apiService.getDrives()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
|
||||||
this.errorToastService.present(e.message)
|
this.errorToastService.present(e.message)
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ export class RecoverPage {
|
|||||||
recoveryDrives = []
|
recoveryDrives = []
|
||||||
selectedDrive: DiskInfo = null
|
selectedDrive: DiskInfo = null
|
||||||
loading = true
|
loading = true
|
||||||
window = window
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private readonly apiService: ApiService,
|
private readonly apiService: ApiService,
|
||||||
@@ -40,7 +39,6 @@ export class RecoverPage {
|
|||||||
try {
|
try {
|
||||||
this.recoveryDrives = (await this.apiService.getDrives()).filter(d => !!d['embassy_os'])
|
this.recoveryDrives = (await this.apiService.getDrives()).filter(d => !!d['embassy_os'])
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e)
|
|
||||||
this.errorToastService.present(e.message)
|
this.errorToastService.present(e.message)
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Component } from '@angular/core'
|
import { Component } from '@angular/core'
|
||||||
import { NavController, ToastController } from '@ionic/angular'
|
import { ToastController } from '@ionic/angular'
|
||||||
import { StateService } from 'src/app/services/state.service'
|
import { StateService } from 'src/app/services/state.service'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|||||||
@@ -74,7 +74,6 @@ export class HttpService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function RpcError (e: RPCError['error']): void {
|
function RpcError (e: RPCError['error']): void {
|
||||||
console.log("error", e)
|
|
||||||
const { code, message, data } = e
|
const { code, message, data } = e
|
||||||
|
|
||||||
this.code = code
|
this.code = code
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ export class StateService {
|
|||||||
'recovery-logicalname': this.recoveryDrive?.logicalname,
|
'recovery-logicalname': this.recoveryDrive?.logicalname,
|
||||||
'recovery-password': this.recoveryPassword
|
'recovery-password': this.recoveryPassword
|
||||||
})
|
})
|
||||||
console.log("return", ret)
|
|
||||||
return { torAddress: ret['tor-address'] }
|
return { torAddress: ret['tor-address'] }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user