From 23f9f2c76810d8a88946c23cd78c6fa7cccc73ee Mon Sep 17 00:00:00 2001 From: argirok Date: Thu, 11 Nov 2021 15:17:39 +0200 Subject: [PATCH] show special subjects link only in dev --- .../landing-utils/showSubjects.component.ts | 43 ++++++++++--------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/landingPages/landing-utils/showSubjects.component.ts b/landingPages/landing-utils/showSubjects.component.ts index 48c276e6..590f6180 100644 --- a/landingPages/landing-utils/showSubjects.component.ts +++ b/landingPages/landing-utils/showSubjects.component.ts @@ -45,29 +45,32 @@ export class ShowSubjectsComponent { @Input() otherSubjects: Map; @Input() classifiedSubjects: Map; properties = properties; - specialSubjects = [ - "Physics::Optics", - "Astrophysics::Cosmology and Extragalactic Astrophysics", - "Computer Science::Information Theory", - "Physics::Accelerator Physics", - "Condensed Matter::Superconductivity", - "Physics::Atomic Physics", - "Computer Science::Robotics", - "Computer Science::Computer Science and Game Theory", - "Computer Science::Neural and Evolutionary Computation", - "Mathematics::Combinatorics", - "Mathematics::Probability", - "Computer Science::Operating Systems", - "lcsh:Medicine", - "lcsh:Science", - "lcsh:Biology (General)", - "lcsh:Chemistry", - "lcsh:Engineering (General). Civil engineering (General)", - "lcsh:Technology" - ]; + specialSubjects = []; // private showClassifiedSbj: boolean = false; constructor() { + if(properties.environment == 'development'){ + this.specialSubjects = [ + "Physics::Optics", + "Astrophysics::Cosmology and Extragalactic Astrophysics", + "Computer Science::Information Theory", + "Physics::Accelerator Physics", + "Condensed Matter::Superconductivity", + "Physics::Atomic Physics", + "Computer Science::Robotics", + "Computer Science::Computer Science and Game Theory", + "Computer Science::Neural and Evolutionary Computation", + "Mathematics::Combinatorics", + "Mathematics::Probability", + "Computer Science::Operating Systems", + "lcsh:Medicine", + "lcsh:Science", + "lcsh:Biology (General)", + "lcsh:Chemistry", + "lcsh:Engineering (General). Civil engineering (General)", + "lcsh:Technology" + ]; + } } ngOnInit() {