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

@@ -13,7 +13,7 @@ export class ServerConfigService {
constructor (
private readonly trackingModalCtrl: TrackingModalController,
private readonly apiService: ApiService,
private readonly embassyApi: ApiService,
private readonly sshService: SSHService,
) { }
@@ -35,19 +35,19 @@ export class ServerConfigService {
saveFns: { [key: string]: (val: any) => Promise<any> } = {
autoCheckUpdates: async (value: boolean) => {
return this.apiService.setDbValue({ pointer: 'ui/auto-check-updates', value })
return this.embassyApi.setDbValue({ pointer: 'ui/auto-check-updates', value })
},
ssh: async (pubkey: string) => {
return this.sshService.add(pubkey)
},
eosMarketplace: async (enabled: boolean) => {
return this.apiService.setEosMarketplace(enabled)
return this.embassyApi.setEosMarketplace(enabled)
},
// packageMarketplace: async (url: string) => {
// return this.apiService.setPackageMarketplace({ url })
// return this.embassyApi.setPackageMarketplace({ url })
// },
// password: async (password: string) => {
// return this.apiService.updatePassword({ password })
// return this.embassyApi.updatePassword({ password })
// },
}
}