mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
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:
committed by
Aiden McClelland
parent
65c4db09f3
commit
d1b8f51b78
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user