-
-
+
0) ||
(activeCategory && activeCategory.description && activeCategory.description.length > 0) ||
(activeTopic && activeTopic.description && activeTopic.description.length > 0))"
- class="uk-text-center">
+ class="uk-text-center">
{{activeSubCategory && activeSubCategory.description && activeSubCategory.description.length > 0 ? activeSubCategory.description
- : (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description :
- (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}}
+ : (activeCategory && activeCategory.description && activeCategory.description.length > 0 ? activeCategory.description :
+ (activeTopic.description && activeTopic.description.length > 0 ? activeTopic.description : ""))}}
@@ -125,7 +132,7 @@
(activeSubCategory.numbers.length == 0 || (activeSubCategory.numbers.length == 1 && activeSubCategory.numbers[0].indicators.length == 0))
&&
(activeSubCategory.charts.length == 0 || (activeSubCategory.charts.length == 1 && activeSubCategory.charts[0].indicators.length == 0))
- ) || !activeTopic || !activeCategory || !activeSubCategory)" >
+ ) || !activeTopic || !activeCategory || !activeSubCategory)">
No indicators available yet. Stay tuned!
@@ -154,21 +161,23 @@
-
+
0" class="uk-width-1-1 uk-margin-top">{{chart.title}}
-
+
{{indicator.name + " "}}
-
+
1" class="uk-button-group">
-
-
-
+
+
+
-
+ fill="white" width="24px" height="24px">
+
+
+
+
+
+
diff --git a/src/app/utils/indicator-utils.ts b/src/app/utils/indicator-utils.ts
index 26dfada..3c53094 100644
--- a/src/app/utils/indicator-utils.ts
+++ b/src/app/utils/indicator-utils.ts
@@ -134,12 +134,12 @@ export class StakeholderUtils {
return null;
}
}
-
- // TODO need to be fixed
+
generateAlias(name: string): string {
let alias = name.toLowerCase();
- while (alias.includes(' / ') || alias.includes(' ')) {
+ while (alias.includes('/') || alias.includes(' ')) {
alias = alias.replace(' / ', '-');
+ alias = alias.replace('/', '-');
alias = alias.replace(' ', '-');
}
return alias;