From 8077d58cd7952c4c0583a63272ca2fc46ab80663 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Wed, 21 Dec 2022 13:40:47 +0200 Subject: [PATCH] Round numbers in monitor and admin indicators --- src/app/monitor/monitor.component.html | 2 +- src/app/monitor/monitor.module.ts | 3 ++- src/app/openaireLibrary | 2 +- src/app/topic/indicators.component.html | 2 +- src/app/topic/topic.module.ts | 3 ++- src/assets/openaire-theme | 2 +- 6 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/app/monitor/monitor.component.html b/src/app/monitor/monitor.component.html index 1ae6fda..3cea78d 100644 --- a/src/app/monitor/monitor.component.html +++ b/src/app/monitor/monitor.component.html @@ -103,7 +103,7 @@
{{indicator.name}}
- {{numberResults.get(i + '-' + j) | number}} + {{numberResults.get(i + '-' + j) | numberRound}} --
{{indicator.name}}
- {{numberResults.get(i + '-' + j) | number}} + {{numberResults.get(i + '-' + j) | numberRound}} --
diff --git a/src/app/topic/topic.module.ts b/src/app/topic/topic.module.ts index 5062668..aab1645 100644 --- a/src/app/topic/topic.module.ts +++ b/src/app/topic/topic.module.ts @@ -20,11 +20,12 @@ import {LoadingModule} from "../openaireLibrary/utils/loading/loading.module"; import {NotifyFormModule} from "../openaireLibrary/notifications/notify-form/notify-form.module"; import {LogoUrlPipeModule} from "../openaireLibrary/utils/pipes/logoUrlPipe.module"; import {TransitionGroupModule} from "../openaireLibrary/utils/transition-group/transition-group.module"; +import {NumberRoundModule} from "../openaireLibrary/utils/pipes/number-round.module"; @NgModule({ imports: [ CommonModule, TopicRoutingModule, ClickModule, RouterModule, FormsModule, AlertModalModule, - ReactiveFormsModule, InputModule, IconsModule, PageContentModule, LoadingModule, NotifyFormModule, LogoUrlPipeModule, TransitionGroupModule + ReactiveFormsModule, InputModule, IconsModule, PageContentModule, LoadingModule, NotifyFormModule, LogoUrlPipeModule, TransitionGroupModule, NumberRoundModule ], declarations: [ TopicComponent, IndicatorsComponent diff --git a/src/assets/openaire-theme b/src/assets/openaire-theme index 2882ccd..be12d26 160000 --- a/src/assets/openaire-theme +++ b/src/assets/openaire-theme @@ -1 +1 @@ -Subproject commit 2882ccde4eb93bd01b4cdb480790cc04b394794d +Subproject commit be12d2637a68e4d17b3a45befe40af2ee8431b6a