feat: support restoring backups from a different server

This commit is contained in:
Aiden McClelland
2026-03-19 01:07:37 -06:00
parent e4b0f56fa7
commit 96dcd126db
5 changed files with 15 additions and 5 deletions

View File

@@ -115,13 +115,14 @@ export class BackupsRecoverModal {
const ids = options.filter(({ checked }) => !!checked).map(({ id }) => id)
const loader = this.loader.open('Initializing').subscribe()
const { targetId, password } = this.context.data
const { targetId, serverId, password } = this.context.data
try {
await this.api.restorePackages({
ids,
targetId,
password,
serverId,
})
this.context.$implicit.complete()

View File

@@ -149,8 +149,8 @@ export class BackupsRecoverComponent {
async restore(options: RecoverOption[]): Promise<void> {
const ids = options.filter(({ checked }) => !!checked).map(({ id }) => id)
const { targetId, password } = this.context.data
const params = { ids, targetId, password }
const { targetId, serverId, password } = this.context.data
const params = { ids, targetId, password, serverId }
const loader = this.loader.open('Initializing').subscribe()
try {

View File

@@ -1242,6 +1242,7 @@ export namespace Mock {
model: null,
vendor: 'SSK',
guid: null,
filesystem: null,
startOs: {
'1234-5678-9876-5432': {
hostname: 'adjective-noun',