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 { export class CifsModal {
cifs = { cifs = {
type: 'cifs' as 'cifs',
hostname: '', hostname: '',
path: '', path: '',
username: '', username: '',

View File

@@ -102,6 +102,7 @@ export class RecoverPage {
if (res.role === 'success') { if (res.role === 'success') {
const { hostname, path, username, password } = res.data.cifs const { hostname, path, username, password } = res.data.cifs
this.stateService.recoverySource = { this.stateService.recoverySource = {
type: 'cifs',
hostname, hostname,
path, path,
username, username,
@@ -165,6 +166,7 @@ export class RecoverPage {
private async selectRecoverySource (logicalname: string, password?: string) { private async selectRecoverySource (logicalname: string, password?: string) {
this.stateService.recoverySource = { this.stateService.recoverySource = {
type: 'disk',
logicalname, logicalname,
} }
this.stateService.recoveryPassword = password this.stateService.recoveryPassword = password

View File

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