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 65c4db09f3
commit d1b8f51b78
50 changed files with 444 additions and 340 deletions

View File

@@ -17,12 +17,12 @@ export class MarkdownPage {
constructor (
private readonly modalCtrl: ModalController,
private readonly errToast: ErrorToastService,
private readonly apiService: ApiService,
private readonly embassyApi: ApiService,
) { }
async ngOnInit () {
try {
this.content = await this.apiService.getStatic(this.contentUrl)
this.content = await this.embassyApi.getStatic(this.contentUrl)
} catch (e) {
console.error(e.message)
this.errToast.present(e.message)

View File

@@ -13,12 +13,12 @@ export class OSWelcomePage {
constructor (
private readonly modalCtrl: ModalController,
private readonly apiService: ApiService,
private readonly embassyApi: ApiService,
private readonly config: ConfigService,
) { }
async dismiss () {
this.apiService.setDbValue({ pointer: '/welcome-ack', value: this.config.version })
this.embassyApi.setDbValue({ pointer: '/welcome-ack', value: this.config.version })
.catch(console.error)
// return false to skip subsequent alert modals (e.g. check for updates modals)