[develop | DONE]: Remove condition for hiding umbrella in production.

This commit is contained in:
Konstantinos Triantafyllou 2024-07-22 10:28:17 +03:00
parent dd4d785d96
commit ed8f4f54d1
1 changed files with 7 additions and 9 deletions

View File

@ -53,18 +53,16 @@ export interface StakeholderCategory {
export class StakeholderConfiguration { export class StakeholderConfiguration {
public static ENTITIES: Entities = new Entities(); 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: 'All', plural: 'All', value: 'all'},
{name: 'Template', plural: 'Templates', value: 'templates'}, {name: 'Template', plural: 'Templates', value: 'templates'},
{name: 'Standalone', plural: 'Standalone', value: 'standalone'}, {name: 'Standalone', plural: 'Standalone', value: 'standalone'},
{name: 'Umbrella', plural: 'Umbrella', value: 'umbrella'}, {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 + tooltip: 'A profile that doesn\'t have his own ' + StakeholderConfiguration.ENTITIES.stakeholder +
', but can be integrated into another ' + 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'},
]; ];
public static TYPES: Option[] = [ public static TYPES: Option[] = [
@ -734,7 +732,7 @@ export class IndicatorUtils {
if (indicatorPath.type == null) { if (indicatorPath.type == null) {
indicatorPath.type = this.defaultChartType; indicatorPath.type = this.defaultChartType;
} }
if(tab) { if (tab) {
indicatorPath.parameters.tab = tab; indicatorPath.parameters.tab = tab;
} }
return indicatorPath; return indicatorPath;
@ -783,7 +781,7 @@ export class IndicatorUtils {
for (let gfilter of filter["groupFilters"]) { for (let gfilter of filter["groupFilters"]) {
let replacedValue = this.replaceIndexValues(gfilter["values"][0], stakeholder); let replacedValue = this.replaceIndexValues(gfilter["values"][0], stakeholder);
if (replacedValue) { // don't proceed in replacement if no replaced value matches if (replacedValue) { // don't proceed in replacement if no replaced value matches
gfilter["values"][0] = replacedValue; gfilter["values"][0] = replacedValue;
} }
} }
} }