mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
fix bug with setup wiz recovery
This commit is contained in:
@@ -4,7 +4,7 @@ import { ErrorService } from '@start9labs/shared'
|
||||
import { CifsModal } from 'src/app/modals/cifs-modal/cifs-modal.page'
|
||||
import {
|
||||
ApiService,
|
||||
StartOSDiskInfoWithId,
|
||||
StartOSDiskInfoFull,
|
||||
} from 'src/app/services/api/api.service'
|
||||
import { StateService } from 'src/app/services/state.service'
|
||||
import { PasswordPage } from '../../modals/password/password.page'
|
||||
@@ -16,7 +16,7 @@ import { PasswordPage } from '../../modals/password/password.page'
|
||||
})
|
||||
export class RecoverPage {
|
||||
loading = true
|
||||
servers: StartOSDiskInfoWithId[] = []
|
||||
servers: StartOSDiskInfoFull[] = []
|
||||
|
||||
constructor(
|
||||
private readonly apiService: ApiService,
|
||||
@@ -78,7 +78,7 @@ export class RecoverPage {
|
||||
await modal.present()
|
||||
}
|
||||
|
||||
async select(server: StartOSDiskInfoWithId) {
|
||||
async select(server: StartOSDiskInfoFull) {
|
||||
const modal = await this.modalController.create({
|
||||
component: PasswordPage,
|
||||
componentProps: { passwordHash: server.passwordHash },
|
||||
@@ -90,7 +90,7 @@ export class RecoverPage {
|
||||
type: 'backup',
|
||||
target: {
|
||||
type: 'disk',
|
||||
logicalname: res.data.logicalname,
|
||||
logicalname: server.partition.logicalname,
|
||||
},
|
||||
serverId: server.id,
|
||||
password: res.data.password,
|
||||
|
||||
Reference in New Issue
Block a user