From 8f991bc9a81cb5940a39cfcecef0e666e9c2cbc8 Mon Sep 17 00:00:00 2001 From: argirok Date: Fri, 26 Nov 2021 14:45:12 +0200 Subject: [PATCH] Updates in customization: upload an image as background for the search form --- connect/community/CustomizationOptions.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 38ef08b6..dbadc970 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -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); }