mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 18:31:52 +00:00
eos update bugs
This commit is contained in:
committed by
Aiden McClelland
parent
c8b32b3a5e
commit
86ef6369e2
@@ -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
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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({ }),
|
||||
|
||||
Reference in New Issue
Block a user