[develop]: Add condition for environement in order to hide umbrella dashboards from production.
This commit is contained in:
parent
deaa358cea
commit
feaa370338
|
@ -53,7 +53,7 @@ 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[] = [
|
public static STAKEHOLDER_CATEGORIES: StakeholderCategory[] = (properties.environment !== 'production')?[
|
||||||
{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'},
|
||||||
|
@ -61,7 +61,12 @@ export class StakeholderConfiguration {
|
||||||
{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[] = [
|
||||||
{value: 'funder', label: StakeholderConfiguration.ENTITIES.funder},
|
{value: 'funder', label: StakeholderConfiguration.ENTITIES.funder},
|
||||||
{value: 'ri', label: StakeholderConfiguration.ENTITIES.ri},
|
{value: 'ri', label: StakeholderConfiguration.ENTITIES.ri},
|
||||||
|
|
Loading…
Reference in New Issue