mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
show available marketplace updates in menu (#1613)
* show service updates in menu
This commit is contained in:
@@ -7,5 +7,7 @@
|
||||
(click)="switchCategory(cat)"
|
||||
>
|
||||
{{ cat }}
|
||||
<span *ngIf="cat === 'updates'"> ({{ updatesAvailable }}) </span>
|
||||
<span *ngIf="cat === 'updates' && updatesAvailable">
|
||||
({{ updatesAvailable }})
|
||||
</span>
|
||||
</ion-button>
|
||||
|
||||
@@ -23,7 +23,7 @@ export class CategoriesComponent {
|
||||
category = ''
|
||||
|
||||
@Input()
|
||||
updatesAvailable? = 0
|
||||
updatesAvailable = 0
|
||||
|
||||
@Output()
|
||||
readonly categoryChange = new EventEmitter<string>()
|
||||
|
||||
@@ -7,7 +7,7 @@ export abstract class AbstractMarketplaceService {
|
||||
|
||||
abstract getReleaseNotes(id: string): Observable<Record<string, string>>
|
||||
|
||||
abstract getCategories(): Observable<string[]>
|
||||
abstract getCategories(): Observable<Set<string>>
|
||||
|
||||
abstract getPackages(): Observable<MarketplacePkg[]>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user