Admin Panel / Settings / Layout / Custom Top Left Corner Logo Height.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2020-11-02 17:53:01 +02:00
parent 3f9b86d8e7
commit 4cfddf1d8d
6 changed files with 18 additions and 2 deletions

View file

@ -204,6 +204,10 @@ template(name='layoutSettings')
.title {{_ 'custom-top-left-corner-logo-link-url'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-link-url(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoLinkUrl}}")
li.layout-form
.title {{_ 'custom-top-left-corner-logo-height'}}
.form-group
input.wekan-form-control#custom-top-left-corner-logo-height(type="text", placeholder="" value="{{currentSetting.customTopLeftCornerLogoHeight}}")
li
button.js-save-layout.primary {{_ 'save'}}

View file

@ -186,6 +186,11 @@ BlazeComponent.extendComponent({
)
.val()
.trim();
const customTopLeftCornerLogoHeight = $(
'#custom-top-left-corner-logo-height',
)
.val()
.trim();
const hideLogoChange = $('input[name=hideLogo]:checked').val() === 'true';
const displayAuthenticationMethod =
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
@ -201,6 +206,7 @@ BlazeComponent.extendComponent({
textBelowCustomLoginLogo,
customTopLeftCornerLogoImageUrl,
customTopLeftCornerLogoLinkUrl,
customTopLeftCornerLogoHeight,
displayAuthenticationMethod,
defaultAuthenticationMethod,
},