From 5a3afe1d8f40f7340ea5ba55086207ba66ad2fec Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 22 Jul 2022 18:33:54 +0300 Subject: [PATCH] updates on customization/ using built css and preview css --- connect/community/CustomizationOptions.ts | 5 ++--- searchPages/searchUtils/searchUtils.class.ts | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 438ded92..ceaeca2b 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -4,14 +4,13 @@ export class Layout { _id:string; portalPid:string; layoutOptions:CustomizationOptions; - date:Date; + date:number; constructor(community, options:CustomizationOptions){ this.portalPid = community; this.layoutOptions = options; } - public static getVariables(layout: Layout): {} | null { - let options = layout.layoutOptions; + public static getVariables(options: CustomizationOptions): {} | null { if(options) { let variables = {}; if(options.identity) { diff --git a/searchPages/searchUtils/searchUtils.class.ts b/searchPages/searchUtils/searchUtils.class.ts index 2f687806..f3cc2ace 100644 --- a/searchPages/searchUtils/searchUtils.class.ts +++ b/searchPages/searchUtils/searchUtils.class.ts @@ -1,3 +1,5 @@ +import {properties} from "../../../../environments/environment"; + export class SearchUtilsClass{ page:number = 1; size:number = 10; @@ -27,6 +29,9 @@ export class SearchCustomFilter{ selected:boolean; promptToAddFilter:boolean; constructor( fieldName:string, queryFieldName:string, valueId:string, valueName:string ){ + if(valueId == "test" && properties.environment == "development"){ + valueId = "covid-19"; + } this.isHiddenFilter = true; this.fieldName = fieldName; this.queryFieldName = queryFieldName;