mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +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 { Component, Input } from '@angular/core'
|
||||||
|
import { BehaviorSubject, Subject } from 'rxjs'
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'notes',
|
selector: 'notes',
|
||||||
@@ -14,6 +15,8 @@ export class NotesComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
load () { }
|
load () { }
|
||||||
|
loading$ = new BehaviorSubject(false)
|
||||||
|
cancel$ = new Subject<void>()
|
||||||
|
|
||||||
asIsOrder () {
|
asIsOrder () {
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
@@ -83,7 +83,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<ion-grid>
|
<ion-grid>
|
||||||
<ion-row>
|
<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-item button class="eos-item" (click)="updateEos()">
|
||||||
<ion-thumbnail slot="start">
|
<ion-thumbnail slot="start">
|
||||||
<img src="assets/img/icon.png" />
|
<img src="assets/img/icon.png" />
|
||||||
|
|||||||
@@ -22,6 +22,10 @@ export class MarketplaceService {
|
|||||||
private readonly patch: PatchDbService,
|
private readonly patch: PatchDbService,
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
|
get eosUpdateAvailable () {
|
||||||
|
return this.eos.version !== this.patch.data['server-info'].version
|
||||||
|
}
|
||||||
|
|
||||||
async load (): Promise<void> {
|
async load (): Promise<void> {
|
||||||
const [data, eos, pkgs] = await Promise.all([
|
const [data, eos, pkgs] = await Promise.all([
|
||||||
this.api.getMarketplaceData({ }),
|
this.api.getMarketplaceData({ }),
|
||||||
|
|||||||
Reference in New Issue
Block a user