Updates in customization: upload an image as background for the search form

deprecated-master
argirok 2 years ago
parent 1fbb461faa
commit 8f991bc9a8

@ -25,6 +25,7 @@ export class CustomizationOptions {
color: string; //background
imageUrl: string;
imageFile: string;
position:string;
}
};
buttons: {
@ -49,7 +50,8 @@ export class CustomizationOptions {
form : {
color: CustomizationOptions.getRGBA(this.identity.mainColor,0.15),
imageUrl : null,
imageFile : null
imageFile : null,
position: null
}
};
@ -104,6 +106,9 @@ export class CustomizationOptions {
if(!current.backgrounds.form){
current.backgrounds.form = Object.assign({}, updated.backgrounds.form);
}
if(!current.backgrounds.form.position){
current.backgrounds.form.position = "center bottom"
}
if(!current.buttons){
current.buttons = Object.assign({}, updated.buttons);
}

Loading…
Cancel
Save