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

This commit is contained in:
argirok 2021-11-26 14:45:12 +02:00
parent 1fbb461faa
commit 8f991bc9a8
1 changed files with 6 additions and 1 deletions

View File

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