eos update bugs

This commit is contained in:
Drew Ansbacher
2021-12-20 15:11:52 -07:00
committed by Aiden McClelland
parent c8b32b3a5e
commit 86ef6369e2
3 changed files with 8 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
import { Component, Input } from '@angular/core'
import { BehaviorSubject, Subject } from 'rxjs'
@Component({
selector: 'notes',
@@ -14,6 +15,8 @@ export class NotesComponent {
}
load () { }
loading$ = new BehaviorSubject(false)
cancel$ = new Subject<void>()
asIsOrder () {
return 0

View File

@@ -83,7 +83,7 @@
</div>
<ion-grid>
<ion-row>
<ion-col *ngIf="marketplaceService.eos && category === 'featured'" sizeXs="12" sizeSm="12" sizeMd="6">
<ion-col *ngIf="marketplaceService.eosUpdateAvailable && category === 'featured'" sizeXs="12" sizeSm="12" sizeMd="6">
<ion-item button class="eos-item" (click)="updateEos()">
<ion-thumbnail slot="start">
<img src="assets/img/icon.png" />

View File

@@ -22,6 +22,10 @@ export class MarketplaceService {
private readonly patch: PatchDbService,
) { }
get eosUpdateAvailable () {
return this.eos.version !== this.patch.data['server-info'].version
}
async load (): Promise<void> {
const [data, eos, pkgs] = await Promise.all([
this.api.getMarketplaceData({ }),