diff --git a/monitor-admin/utils/indicator-utils.ts b/monitor-admin/utils/indicator-utils.ts index 5a17a189..a30172dd 100644 --- a/monitor-admin/utils/indicator-utils.ts +++ b/monitor-admin/utils/indicator-utils.ts @@ -53,18 +53,16 @@ export interface StakeholderCategory { export class StakeholderConfiguration { public static ENTITIES: Entities = new Entities(); - public static STAKEHOLDER_CATEGORIES: StakeholderCategory[] = (properties.environment !== 'production')?[ + public static STAKEHOLDER_CATEGORIES: StakeholderCategory[] = [ {name: 'All', plural: 'All', value: 'all'}, {name: 'Template', plural: 'Templates', value: 'templates'}, {name: 'Standalone', plural: 'Standalone', value: 'standalone'}, {name: 'Umbrella', plural: 'Umbrella', value: 'umbrella'}, - {name: 'Integrated ', plural: 'Integrated', value: 'dependent', + { + name: 'Integrated ', plural: 'Integrated', value: 'dependent', tooltip: 'A profile that doesn\'t have his own ' + StakeholderConfiguration.ENTITIES.stakeholder + - ', but can be integrated into another ' + StakeholderConfiguration.ENTITIES.stakeholder + '.'} - ]:[ - {name: 'All', plural: 'All', value: 'all'}, - {name: 'Template', plural: 'Templates', value: 'templates'}, - {name: 'Profiles', plural: 'Profiles', value: 'standalone'}, + ', but can be integrated into another ' + StakeholderConfiguration.ENTITIES.stakeholder + '.' + } ]; public static TYPES: Option[] = [ @@ -734,7 +732,7 @@ export class IndicatorUtils { if (indicatorPath.type == null) { indicatorPath.type = this.defaultChartType; } - if(tab) { + if (tab) { indicatorPath.parameters.tab = tab; } return indicatorPath; @@ -783,7 +781,7 @@ export class IndicatorUtils { for (let gfilter of filter["groupFilters"]) { let replacedValue = this.replaceIndexValues(gfilter["values"][0], stakeholder); if (replacedValue) { // don't proceed in replacement if no replaced value matches - gfilter["values"][0] = replacedValue; + gfilter["values"][0] = replacedValue; } } }