From a72b152598fe048284a4e8cfbff14172f897ab20 Mon Sep 17 00:00:00 2001 From: Shane Melton Date: Fri, 7 Oct 2022 17:35:17 -0700 Subject: [PATCH] [EC-86] Add bit-badge-list component and tweak BadgeModule to support both the component and directive. Update mockI18nService to support templated strings. --- .../manage/groups.component.html | 21 ++------ .../organizations/manage/groups.component.ts | 1 - .../src/badge/badge-list.component.html | 12 +++++ .../src/badge/badge-list.component.ts | 48 +++++++++++++++++++ libs/components/src/badge/badge.directive.ts | 2 +- libs/components/src/badge/badge.module.ts | 10 ++-- libs/components/src/badge/badge.stories.ts | 46 ++++++++++++++++-- libs/components/src/badge/index.ts | 2 +- .../components/src/utils/i18n-mock.service.ts | 8 +++- 9 files changed, 122 insertions(+), 28 deletions(-) create mode 100644 libs/components/src/badge/badge-list.component.html create mode 100644 libs/components/src/badge/badge-list.component.ts diff --git a/apps/web/src/app/organizations/manage/groups.component.html b/apps/web/src/app/organizations/manage/groups.component.html index 0e420bd928b..cdeb250c266 100644 --- a/apps/web/src/app/organizations/manage/groups.component.html +++ b/apps/web/src/app/organizations/manage/groups.component.html @@ -81,22 +81,11 @@ - - {{ cName }} , - - - {{ "plusNMore" | i18n: (g.collectionNames.length - maxCollections).toString() }} - +