Skip to content

Commit

Permalink
feat: changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jun 27, 2024
1 parent cb83567 commit 6f877d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
<div class="flex flex-col gap-2">
<span class="font-semibold" translate="">mel.dataset.categories</span>
<div class="flex gap-1 gap-x-2 flex-row flex-wrap">
@for(topic of displayCategories; track $index) {
@for(category of displayCategories; track $index) {
<button
class="mel-badge-primary truncate"
(click)="onInfoKeywordClick(topic)"
(click)="onCategoryKeywordClick(category)"
>
{{ topic }}
{{ category }}
</button>
}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export class DatasetInformationComponent {
return categoryKeywords?.map((keyword) => keyword.label)
}

onInfoKeywordClick(keyword: string) {
this.routerFacade
? this.routerFacade.updateSearch({ q: keyword })
: goFromHomeToSearch(keyword)
onCategoryKeywordClick(category: string) {
this.routerFacade.updateSearch({ q: category })
}
}

0 comments on commit 6f877d1

Please sign in to comment.