mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +00:00
fix setup recovery
This commit is contained in:
committed by
Aiden McClelland
parent
61dbd2a6da
commit
faf2f8731f
@@ -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: '',
|
||||||
|
|||||||
@@ -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,
|
||||||
@@ -131,7 +132,7 @@ export class RecoverPage {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
await modal.present()
|
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 {
|
} else {
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: ProdKeyModal,
|
component: ProdKeyModal,
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user