mirror of
https://github.com/wekan/wekan.git
synced 2026-01-28 20:26:09 +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
|
|
@ -140,18 +140,20 @@ template(name="boardChangeColorPopup")
|
|||
template(name="boardInfoOnMyBoardsPopup")
|
||||
form.board-info-on-my-boards
|
||||
h3 {{_ 'show-at-all-boards-page'}}
|
||||
div.check-div
|
||||
a.flex.js-field-has-cardcounterlist(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
|
||||
.materialCheckBox(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
|
||||
span
|
||||
i.fa.fa-sign-out
|
||||
| {{_ 'show-card-counter-per-list'}}
|
||||
div.check-div
|
||||
a.flex.js-field-has-boardmemberlist(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
|
||||
.materialCheckBox(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
|
||||
span
|
||||
i.fa.fa-hourglass-start
|
||||
| {{_ 'show-board_members-avatar'}}
|
||||
unless currentSetting.hideCardCounterList
|
||||
div.check-div
|
||||
a.flex.js-field-has-cardcounterlist(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
|
||||
.materialCheckBox(class="{{#if allowsCardCounterList}}is-checked{{/if}}")
|
||||
span
|
||||
i.fa.fa-sign-out
|
||||
| {{_ 'show-card-counter-per-list'}}
|
||||
unless currentSetting.hideBoardMemberList
|
||||
div.check-div
|
||||
a.flex.js-field-has-boardmemberlist(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
|
||||
.materialCheckBox(class="{{#if allowsBoardMemberList}}is-checked{{/if}}")
|
||||
span
|
||||
i.fa.fa-hourglass-start
|
||||
| {{_ 'show-board_members-avatar'}}
|
||||
|
||||
template(name="boardCardSettingsPopup")
|
||||
form.board-card-settings
|
||||
|
|
@ -407,10 +409,12 @@ template(name="boardMenuPopup")
|
|||
i.fa.fa-paint-brush
|
||||
| {{_ 'board-change-color'}}
|
||||
if currentUser.isBoardAdmin
|
||||
li
|
||||
a.js-board-info-on-my-boards(title="{{_ 'board-info-on-my-boards'}}")
|
||||
i.fa.fa-id-card-o
|
||||
| {{_ 'board-info-on-my-boards'}}
|
||||
unless currentSetting.hideBoardMemberList
|
||||
unless currentSetting.hideCardCounterList
|
||||
li
|
||||
a.js-board-info-on-my-boards(title="{{_ 'board-info-on-my-boards'}}")
|
||||
i.fa.fa-id-card-o
|
||||
| {{_ 'board-info-on-my-boards'}}
|
||||
hr
|
||||
ul.pop-over-list
|
||||
if withApi
|
||||
|
|
|
|||
|
|
@ -22,6 +22,8 @@ BlazeComponent.extendComponent({
|
|||
onCreated() {
|
||||
this._isOpen = new ReactiveVar(false);
|
||||
this._view = new ReactiveVar(defaultView);
|
||||
this._hideCardCounterList = new ReactiveVar(false);
|
||||
this._hideBoardMemberList = new ReactiveVar(false);
|
||||
Sidebar = this;
|
||||
},
|
||||
|
||||
|
|
@ -143,6 +145,18 @@ Template.homeSidebar.helpers({
|
|||
},
|
||||
});
|
||||
|
||||
Template.boardInfoOnMyBoardsPopup.helpers({
|
||||
currentSetting() {
|
||||
return Settings.findOne();
|
||||
},
|
||||
hideCardCounterList() {
|
||||
return Utils.isMiniScreen() && Session.get('currentBoard');
|
||||
},
|
||||
hideBoardMemberList() {
|
||||
return Utils.isMiniScreen() && Session.get('currentBoard');
|
||||
},
|
||||
})
|
||||
|
||||
EscapeActions.register(
|
||||
'sidebarView',
|
||||
() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue