Skip to content

Commit

Permalink
Add some more options to logos preview (cncf#594)
Browse files Browse the repository at this point in the history
Add some more options to logos preview

Closes cncf#526 and cncf#506

Signed-off-by: Cintia Sanchez Garcia <[email protected]>
  • Loading branch information
cynthia-sg authored and ES-zxy committed May 8, 2024
1 parent 296eeda commit b17e823
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ui/webapp/src/utils/itemsDataGetter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,16 @@ export class ItemsDataGetter {
}
}

// Get all end users
public getAllEndUserItems(): Item[] | undefined {
if (this.ready && this.landscapeData && this.landscapeData.items) {
return this.landscapeData.items.filter(
(i: Item) =>
(i.enduser && window.baseDS.members_category === i.category) || i.subcategory === 'End User Supporter'
);
}
}

// Get maturity options
public getMaturityOptions(): string[] {
const maturity = window.baseDS.items.map((i: Item) => i.maturity);
Expand Down

0 comments on commit b17e823

Please sign in to comment.