recovery-drive not logicalname

This commit is contained in:
Drew Ansbacher
2021-10-07 19:31:45 -06:00
committed by Aiden McClelland
parent f1e4cad3bd
commit c199a6525f
4 changed files with 4 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ export class EmbassyPage {
async getDrives () {
try {
this.storageDrives = await this.apiService.getDrives()
this.storageDrives = (await this.apiService.getDrives()).filter(d => d.logicalname !== this.stateService.recoveryDrive?.logicalname)
} catch (e) {
this.errorToastService.present(e.message)
} finally {

View File

@@ -19,7 +19,7 @@ export interface GetStatusRes {
export interface SetupEmbassyReq {
'embassy-logicalname': string
'embassy-password': string
'recovery-logicalname'?: string
'recovery-drive'?: DiskInfo
'recovery-password'?: string
}

View File

@@ -60,7 +60,7 @@ export class StateService {
const ret = await this.apiService.setupEmbassy({
'embassy-logicalname': this.storageDrive.logicalname,
'embassy-password': this.embassyPassword,
'recovery-logicalname': this.recoveryDrive?.logicalname,
'recovery-drive': this.recoveryDrive,
'recovery-password': this.recoveryPassword,
})
return { torAddress: ret }