From a6d3c02aa5d87a3faa9c6215b82d9f4b495bbb18 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Fri, 3 Jun 2022 18:34:23 +0300 Subject: [PATCH] [Connect & Library | new-theme]: Replaced "Subscribed" badge with "Member" text | Renamed "subscriber" filter to "member" in search communities page | Fixed "view all" buttons in my communities page. 1. browse-community.component.html: Replaced "Subscribed" badge with "Member" text | Updated how restricted/private icons are displayed. 2. browse-community.component.ts: Updated visibilityIcon map (PRIVATE -> incognito icon, RESTRICTED -> restricted icon). 3. browse-community.module.ts: iconsService.registerIcons([incognito, restricted]). 4. communities.component.html & my-communities.component.html: Added uk-button class in "View all" button for communities. 5. portal-search-result.component.html: Replaced "Subscribed" badge with "Member" text. 6. searchCommunities.component.ts: Renamed "subscriber" filter to "member". --- .../browse-community.component.html | 16 +++++++------- .../browse-community.component.ts | 4 ++-- .../browse-community.module.ts | 8 ++++++- .../communities/communities.component.html | 2 +- .../my-communities.component.html | 22 +++++++++---------- src/app/openaireLibrary | 2 +- .../searchCommunities.component.ts | 6 ++--- 7 files changed, 33 insertions(+), 27 deletions(-) diff --git a/src/app/communities/browseCommunity/browse-community.component.html b/src/app/communities/browseCommunity/browse-community.component.html index 4292e8b..8b6a4fb 100644 --- a/src/app/communities/browseCommunity/browse-community.component.html +++ b/src/app/communities/browseCommunity/browse-community.component.html @@ -9,18 +9,18 @@
- Subscribed + class="uk-text-background uk-text-center uk-position-top-left uk-padding-small uk-text-uppercase uk-text-bold"> + Member
- - restricted + class="uk-position-top-right uk-margin-small-top uk-margin-small-right uk-flex uk-flex-column uk-flex-middle"> + + restricted
- - private + class="uk-position-top-right uk-margin-small-top uk-margin-small-right uk-flex uk-flex-column uk-flex-middle"> + + private
- @@ -45,15 +45,15 @@ - - diff --git a/src/app/openaireLibrary b/src/app/openaireLibrary index b88c65a..658c96b 160000 --- a/src/app/openaireLibrary +++ b/src/app/openaireLibrary @@ -1 +1 @@ -Subproject commit b88c65a3430a3689770e40e1e6f34d8bb10b86c3 +Subproject commit 658c96bb02308e0dec08178ce269fb4b14475bb8 diff --git a/src/app/searchPages/communities/searchCommunities.component.ts b/src/app/searchPages/communities/searchCommunities.component.ts index 92bf3e0..3a884fd 100644 --- a/src/app/searchPages/communities/searchCommunities.component.ts +++ b/src/app/searchPages/communities/searchCommunities.component.ts @@ -336,7 +336,7 @@ export class SearchCommunitiesComponent { break; } } - if (value.replace(/["']/g, "") == 'subscriber') { + if (value.replace(/["']/g, "") == 'member') { if (this.results[i].isSubscribed) { results.push(this.results[i]); break; @@ -476,8 +476,8 @@ export class SearchCommunitiesComponent { value_original_ids.push(["public", "restricted", "private"]); filter_names.push("Role"); filter_ids.push("role"); - value_names.push(["Manager", "Subscriber"]); - value_original_ids.push(["manager", "subscriber"]); + value_names.push(["Manager", "Member"]); + value_original_ids.push(["manager", "member"]); } let filters: Filter[] = []; for (let i = 0; i < filter_names.length; i++) {