pr review

This commit is contained in:
Drew Ansbacher
2021-09-15 10:43:31 -06:00
committed by Drew Ansbacher
parent 13d9293f57
commit a256a48776
5 changed files with 1 additions and 7 deletions

View File

@@ -14,7 +14,6 @@ export class EmbassyPage {
storageDrives = []
selectedDrive: DiskInfo = null
loading = true
window = window
constructor(
private readonly apiService: ApiService,
@@ -41,7 +40,6 @@ export class EmbassyPage {
try {
this.storageDrives = await this.apiService.getDrives()
} catch (e) {
console.log(e)
this.errorToastService.present(e.message)
} finally {
this.loading = false

View File

@@ -15,7 +15,6 @@ export class RecoverPage {
recoveryDrives = []
selectedDrive: DiskInfo = null
loading = true
window = window
constructor(
private readonly apiService: ApiService,
@@ -40,7 +39,6 @@ export class RecoverPage {
try {
this.recoveryDrives = (await this.apiService.getDrives()).filter(d => !!d['embassy_os'])
} catch (e) {
console.log(e)
this.errorToastService.present(e.message)
} finally {
this.loading = false

View File

@@ -1,5 +1,5 @@
import { Component } from '@angular/core'
import { NavController, ToastController } from '@ionic/angular'
import { ToastController } from '@ionic/angular'
import { StateService } from 'src/app/services/state.service'
@Component({

View File

@@ -74,7 +74,6 @@ export class HttpService {
}
function RpcError (e: RPCError['error']): void {
console.log("error", e)
const { code, message, data } = e
this.code = code

View File

@@ -50,7 +50,6 @@ export class StateService {
'recovery-logicalname': this.recoveryDrive?.logicalname,
'recovery-password': this.recoveryPassword
})
console.log("return", ret)
return { torAddress: ret['tor-address'] }
}
}