mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
LINKED_CARDS_ENABLED settings part 3.
In Progress, linked cards not completely disabled yet. Thanks to xet7 !
This commit is contained in:
parent
7a90e89348
commit
e928660bc0
4 changed files with 23 additions and 30 deletions
|
|
@ -5,17 +5,6 @@ BlazeComponent.extendComponent({
|
|||
onCreated() {
|
||||
// for infinite scrolling
|
||||
this.cardlimit = new ReactiveVar(InfiniteScrollIter);
|
||||
this.linkCardsEnabled = new ReactiveVar(true);
|
||||
|
||||
Meteor.call('getLinkedCardsEnabled', (error, ret) => {
|
||||
if (!error && ret) {
|
||||
this.linkCardsEnabled.set(ret);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
linkCardsEnabled() {
|
||||
return this.linkCardsEnabled.get();
|
||||
},
|
||||
|
||||
mixins() {
|
||||
|
|
@ -388,6 +377,12 @@ BlazeComponent.extendComponent({
|
|||
},
|
||||
}).register('addCardForm');
|
||||
|
||||
Template.addCardForm.helpers({
|
||||
linkedCardsEnabled() {
|
||||
return Meteor.settings.public.linkedCardsEnabled;
|
||||
},
|
||||
});
|
||||
|
||||
BlazeComponent.extendComponent({
|
||||
onCreated() {
|
||||
this.selectedBoardId = new ReactiveVar('');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue