fixes and backwards compatability with new registry types

This commit is contained in:
Lucy Cifferello
2024-06-04 21:25:29 -04:00
parent 206c185a3b
commit bd4d89fc21
18 changed files with 120 additions and 38 deletions

View File

@@ -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([])
}
}