bug fixes and cosmetic improvements

This commit is contained in:
Matt Hill
2021-09-01 14:45:16 -06:00
parent ec6f464bc0
commit 09a9cfe88c
21 changed files with 147 additions and 118 deletions

View File

@@ -15,6 +15,7 @@ export class AppRestoreComponent {
@Input() pkgId: string
disks: DiskInfo
loading = true
submitting = false
allPartitionsMounted: boolean
modal: HTMLIonModalElement
@@ -73,10 +74,17 @@ export class AppRestoreComponent {
}
private async restore (logicalname: string, password: string): Promise<void> {
await this.embassyApi.restorePackage({
id: this.pkgId,
logicalname,
password,
})
this.submitting = true
try {
await this.embassyApi.restorePackage({
id: this.pkgId,
logicalname,
password,
})
} catch (e) {
this.errToast.present(e)
} finally {
this.submitting = false
}
}
}