Merge remote-tracking branch 'origin/new-theme' into new-theme

This commit is contained in:
argirok 2022-07-22 18:36:12 +03:00
commit e7724b4ad9
2 changed files with 7 additions and 3 deletions

View File

@ -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) {

View File

@ -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;