mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
fixes and backwards compatability with new registry types
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { Injectable } from '@angular/core'
|
||||
import { Injectable, inject } from '@angular/core'
|
||||
import { Observable } from 'rxjs'
|
||||
import { AbstractCategoryService } from '@start9labs/marketplace'
|
||||
import { Router } from '@angular/router'
|
||||
|
||||
@Injectable()
|
||||
export class CategoryService extends AbstractCategoryService {
|
||||
private readonly router = inject(Router)
|
||||
|
||||
getCategory$(): Observable<string> {
|
||||
return this.category$
|
||||
}
|
||||
@@ -23,4 +26,8 @@ export class CategoryService extends AbstractCategoryService {
|
||||
resetQuery() {
|
||||
this.query$.next('')
|
||||
}
|
||||
|
||||
handleNavigation() {
|
||||
this.router.navigate([])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user