fix setup recovery

This commit is contained in:
Aiden McClelland
2021-12-21 21:09:19 -07:00
committed by Aiden McClelland
parent 61dbd2a6da
commit faf2f8731f
3 changed files with 6 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ import { PasswordPage } from '../password/password.page'
})
export class CifsModal {
cifs = {
type: 'cifs' as 'cifs',
hostname: '',
path: '',
username: '',

View File

@@ -102,6 +102,7 @@ export class RecoverPage {
if (res.role === 'success') {
const { hostname, path, username, password } = res.data.cifs
this.stateService.recoverySource = {
type: 'cifs',
hostname,
path,
username,
@@ -131,7 +132,7 @@ export class RecoverPage {
}
})
await modal.present()
// if no product key, it means they are an upgrade kit user
// if no product key, it means they are an upgrade kit user
} else {
const modal = await this.modalController.create({
component: ProdKeyModal,
@@ -165,6 +166,7 @@ export class RecoverPage {
private async selectRecoverySource (logicalname: string, password?: string) {
this.stateService.recoverySource = {
type: 'disk',
logicalname,
}
this.stateService.recoveryPassword = password

View File

@@ -57,10 +57,12 @@ export interface CifsBackupTarget {
}
export interface DiskRecoverySource {
type: 'disk'
logicalname: string // partition logicalname
}
export interface CifsRecoverySource {
type: 'cifs'
hostname: string
path: string
username: string