From 2a256785886b87840c46df731a302816ddbe2d03 Mon Sep 17 00:00:00 2001 From: amontenegro Date: Tue, 19 Dec 2023 13:28:04 -0600 Subject: [PATCH] Disable badges --- .../java/org/orcid/core/togglz/Features.java | 5 +- .../member-details-ng2-template.ftl | 231 ++++++------------ .../membersList/memberDetails.component.ts | 4 +- 3 files changed, 71 insertions(+), 169 deletions(-) diff --git a/orcid-core/src/main/java/org/orcid/core/togglz/Features.java b/orcid-core/src/main/java/org/orcid/core/togglz/Features.java index b9f95f45174..2bc5a0fe797 100644 --- a/orcid-core/src/main/java/org/orcid/core/togglz/Features.java +++ b/orcid-core/src/main/java/org/orcid/core/togglz/Features.java @@ -25,10 +25,7 @@ public enum Features implements Feature { CRAZY_EGG, @Label("HelpHero") - ORCID_ANGULAR_HELP_HERO, - - @Label("Disable Badges") - DISABLE_BADGES, + ORCID_ANGULAR_HELP_HERO, @Label("Enable the API record create endpoint for QA purposes") ENABLE_RECORD_CREATE_ENDPOINT, diff --git a/orcid-web/src/main/resources/freemarker/includes/ng2_templates/member-details-ng2-template.ftl b/orcid-web/src/main/resources/freemarker/includes/ng2_templates/member-details-ng2-template.ftl index c73cd22c4d3..1474a0bb60d 100644 --- a/orcid-web/src/main/resources/freemarker/includes/ng2_templates/member-details-ng2-template.ftl +++ b/orcid-web/src/main/resources/freemarker/includes/ng2_templates/member-details-ng2-template.ftl @@ -1,166 +1,73 @@ \ No newline at end of file diff --git a/orcid-web/src/main/webapp/static/javascript/ng1Orcid/app/modules/membersList/memberDetails.component.ts b/orcid-web/src/main/webapp/static/javascript/ng1Orcid/app/modules/membersList/memberDetails.component.ts index b8f506d4dde..55961bf92ca 100644 --- a/orcid-web/src/main/webapp/static/javascript/ng1Orcid/app/modules/membersList/memberDetails.component.ts +++ b/orcid-web/src/main/webapp/static/javascript/ng1Orcid/app/modules/membersList/memberDetails.component.ts @@ -29,8 +29,7 @@ export class MemberDetailsComponent { currentMemberDetails: any = null; badgesAwarded: any = {} assetsPath: String; - badgesDisabled: boolean; - + constructor( protected commonSrvc: CommonService, protected membersListService: MembersListService, @@ -97,7 +96,6 @@ export class MemberDetailsComponent { } ngOnInit(): void { - this.badgesDisabled = this.featuresService.isFeatureEnabled('DISABLE_BADGES'); this.getCommunityTypes(); this.getCurrentMemberDetails(); }