dont watch patch.data directly in TS (#371)

* dont watch patch.data directly in TS

* installs and uninstalls working

* minor repairs
This commit is contained in:
Matt Hill
2021-07-20 10:20:39 -06:00
committed by Aiden McClelland
parent e8bf254b91
commit 08e845228f
50 changed files with 444 additions and 340 deletions

View File

@@ -17,7 +17,7 @@ export class ServerBackupPage {
constructor (
private readonly modalCtrl: ModalController,
private readonly apiService: ApiService,
private readonly embassyApi: ApiService,
private readonly loadingCtrl: LoadingController,
) { }
@@ -32,7 +32,7 @@ export class ServerBackupPage {
async getExternalDisks (): Promise<void> {
try {
this.disks = await this.apiService.getDisks({ })
this.disks = await this.embassyApi.getDisks({ })
this.allPartitionsMounted = Object.values(this.disks).every(d => Object.values(d.partitions).every(p => p['is-mounted']))
} catch (e) {
console.error(e)
@@ -70,7 +70,7 @@ export class ServerBackupPage {
await loader.present()
try {
await this.apiService.createBackup({ logicalname, password })
await this.embassyApi.createBackup({ logicalname, password })
} catch (e) {
console.error(e)
this.error = e.message