mirror of
https://github.com/wekan/wekan.git
synced 2026-01-08 18:48:50 +01:00
Added hide/show to show counters and members on All Boards (Admin Panel)
This commit is contained in:
parent
c307aa6354
commit
9dff09fbcf
10 changed files with 160 additions and 27 deletions
|
|
@ -253,6 +253,20 @@ template(name='layoutSettings')
|
|||
.title {{_ 'automatic-linked-url-schemes'}}
|
||||
.form-group
|
||||
textarea#automatic-linked-url-schemes.wekan-form-control= currentSetting.automaticLinkedUrlSchemes
|
||||
li.layout-form
|
||||
.title {{_ 'hide-card-counter-list'}}
|
||||
.form-group.flex
|
||||
input.wekan-form-control#hide-card-counter-list(type="radio" name="hideCardCounterList" value="true" checked="{{#if currentSetting.hideCardCounterList}}checked{{/if}}")
|
||||
span {{_ 'yes'}}
|
||||
input.wekan-form-control#hide-card-counter-list(type="radio" name="hideCardCounterList" value="false" checked="{{#unless currentSetting.hideCardCounterList}}checked{{/unless}}")
|
||||
span {{_ 'no'}}
|
||||
li.layout-form
|
||||
.title {{_ 'hide-board-member-list'}}
|
||||
.form-group.flex
|
||||
input.wekan-form-control#hide-board-member-list(type="radio" name="hideBoardMemberList" value="true" checked="{{#if currentSetting.hideBoardMemberList}}checked{{/if}}")
|
||||
span {{_ 'yes'}}
|
||||
input.wekan-form-control#hide-board-member-list(type="radio" name="hideBoardMemberList" value="false" checked="{{#unless currentSetting.hideBoardMemberList}}checked{{/unless}}")
|
||||
span {{_ 'no'}}
|
||||
li
|
||||
button.js-save-layout.primary {{_ 'save'}}
|
||||
|
||||
|
|
|
|||
|
|
@ -85,6 +85,12 @@ BlazeComponent.extendComponent({
|
|||
toggleHideLogo() {
|
||||
$('#hide-logo').toggleClass('is-checked');
|
||||
},
|
||||
toggleHideCardCounterList() {
|
||||
$('#hide-card-counter-list').toggleClass('is-checked');
|
||||
},
|
||||
toggleHideBoardMemberList() {
|
||||
$('#hide-board-member-list').toggleClass('is-checked');
|
||||
},
|
||||
toggleDisplayAuthenticationMethod() {
|
||||
$('#display-authentication-method').toggleClass('is-checked');
|
||||
},
|
||||
|
|
@ -230,6 +236,8 @@ BlazeComponent.extendComponent({
|
|||
.val()
|
||||
.trim();
|
||||
const hideLogoChange = $('input[name=hideLogo]:checked').val() === 'true';
|
||||
const hideCardCounterListChange = $('input[name=hideCardCounterList]:checked').val() === 'true';
|
||||
const hideBoardMemberListChange = $('input[name=hideBoardMemberList]:checked').val() === 'true';
|
||||
const displayAuthenticationMethod =
|
||||
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
||||
const defaultAuthenticationMethod = $('#defaultAuthenticationMethod').val();
|
||||
|
|
@ -241,6 +249,8 @@ BlazeComponent.extendComponent({
|
|||
$set: {
|
||||
productName,
|
||||
hideLogo: hideLogoChange,
|
||||
hideCardCounterList: hideCardCounterListChange,
|
||||
hideBoardMemberList: hideBoardMemberListChange,
|
||||
customLoginLogoImageUrl,
|
||||
customLoginLogoLinkUrl,
|
||||
customHelpLinkUrl,
|
||||
|
|
@ -291,6 +301,8 @@ BlazeComponent.extendComponent({
|
|||
'click button.js-save': this.saveMailServerInfo,
|
||||
'click button.js-send-smtp-test-email': this.sendSMTPTestEmail,
|
||||
'click a.js-toggle-hide-logo': this.toggleHideLogo,
|
||||
'click a.js-toggle-hide-card-counter-list': this.toggleHideCardCounterList,
|
||||
'click a.js-toggle-hide-board-member-list': this.toggleHideBoardMemberList,
|
||||
'click button.js-save-layout': this.saveLayout,
|
||||
'click a.js-toggle-display-authentication-method': this
|
||||
.toggleDisplayAuthenticationMethod,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue