Updates in customization: upload an image as background for the search form
This commit is contained in:
parent
1fbb461faa
commit
8f991bc9a8
|
@ -25,6 +25,7 @@ export class CustomizationOptions {
|
||||||
color: string; //background
|
color: string; //background
|
||||||
imageUrl: string;
|
imageUrl: string;
|
||||||
imageFile: string;
|
imageFile: string;
|
||||||
|
position:string;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
buttons: {
|
buttons: {
|
||||||
|
@ -49,7 +50,8 @@ export class CustomizationOptions {
|
||||||
form : {
|
form : {
|
||||||
color: CustomizationOptions.getRGBA(this.identity.mainColor,0.15),
|
color: CustomizationOptions.getRGBA(this.identity.mainColor,0.15),
|
||||||
imageUrl : null,
|
imageUrl : null,
|
||||||
imageFile : null
|
imageFile : null,
|
||||||
|
position: null
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -104,6 +106,9 @@ export class CustomizationOptions {
|
||||||
if(!current.backgrounds.form){
|
if(!current.backgrounds.form){
|
||||||
current.backgrounds.form = Object.assign({}, updated.backgrounds.form);
|
current.backgrounds.form = Object.assign({}, updated.backgrounds.form);
|
||||||
}
|
}
|
||||||
|
if(!current.backgrounds.form.position){
|
||||||
|
current.backgrounds.form.position = "center bottom"
|
||||||
|
}
|
||||||
if(!current.buttons){
|
if(!current.buttons){
|
||||||
current.buttons = Object.assign({}, updated.buttons);
|
current.buttons = Object.assign({}, updated.buttons);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue