mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
recovery-drive not logicalname
This commit is contained in:
committed by
Aiden McClelland
parent
f1e4cad3bd
commit
c199a6525f
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user