updates on customization/ using built css and preview css
This commit is contained in:
parent
7641c46d34
commit
5a3afe1d8f
|
@ -4,14 +4,13 @@ export class Layout {
|
||||||
_id:string;
|
_id:string;
|
||||||
portalPid:string;
|
portalPid:string;
|
||||||
layoutOptions:CustomizationOptions;
|
layoutOptions:CustomizationOptions;
|
||||||
date:Date;
|
date:number;
|
||||||
constructor(community, options:CustomizationOptions){
|
constructor(community, options:CustomizationOptions){
|
||||||
this.portalPid = community;
|
this.portalPid = community;
|
||||||
this.layoutOptions = options;
|
this.layoutOptions = options;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static getVariables(layout: Layout): {} | null {
|
public static getVariables(options: CustomizationOptions): {} | null {
|
||||||
let options = layout.layoutOptions;
|
|
||||||
if(options) {
|
if(options) {
|
||||||
let variables = {};
|
let variables = {};
|
||||||
if(options.identity) {
|
if(options.identity) {
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import {properties} from "../../../../environments/environment";
|
||||||
|
|
||||||
export class SearchUtilsClass{
|
export class SearchUtilsClass{
|
||||||
page:number = 1;
|
page:number = 1;
|
||||||
size:number = 10;
|
size:number = 10;
|
||||||
|
@ -27,6 +29,9 @@ export class SearchCustomFilter{
|
||||||
selected:boolean;
|
selected:boolean;
|
||||||
promptToAddFilter:boolean;
|
promptToAddFilter:boolean;
|
||||||
constructor( fieldName:string, queryFieldName:string, valueId:string, valueName:string ){
|
constructor( fieldName:string, queryFieldName:string, valueId:string, valueName:string ){
|
||||||
|
if(valueId == "test" && properties.environment == "development"){
|
||||||
|
valueId = "covid-19";
|
||||||
|
}
|
||||||
this.isHiddenFilter = true;
|
this.isHiddenFilter = true;
|
||||||
this.fieldName = fieldName;
|
this.fieldName = fieldName;
|
||||||
this.queryFieldName = queryFieldName;
|
this.queryFieldName = queryFieldName;
|
||||||
|
|
Loading…
Reference in New Issue