mirror of
https://github.com/wekan/wekan.git
synced 2026-01-27 11:46:10 +01:00
[Admin panel] Add a parameter to display or not the visibility of a board in private mode only
This commit is contained in:
parent
8e142dfdcf
commit
9bb1425a81
74 changed files with 355 additions and 74 deletions
|
|
@ -194,6 +194,11 @@ const CreateBoard = BlazeComponent.extendComponent({
|
|||
this.visibilityMenuIsOpen = new ReactiveVar(false);
|
||||
this.visibility = new ReactiveVar('private');
|
||||
this.boardId = new ReactiveVar('');
|
||||
Meteor.subscribe('tableVisibilityModeSettings');
|
||||
},
|
||||
|
||||
notAllowPrivateVisibilityOnly(){
|
||||
return !TableVisibilityModeSettings.findOne('tableVisibilityMode-allowPrivateOnly').booleanValue;
|
||||
},
|
||||
|
||||
visibilityCheck() {
|
||||
|
|
@ -310,6 +315,9 @@ const CreateBoard = BlazeComponent.extendComponent({
|
|||
}.register('headerBarCreateBoardPopup'));
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
notAllowPrivateVisibilityOnly(){
|
||||
return !TableVisibilityModeSettings.findOne('tableVisibilityMode-allowPrivateOnly').booleanValue;
|
||||
},
|
||||
visibilityCheck() {
|
||||
const currentBoard = Boards.findOne(Session.get('currentBoard'));
|
||||
return this.currentData() === currentBoard.permission;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue