|
@@ -5,17 +5,6 @@ BlazeComponent.extendComponent({
|
|
onCreated() {
|
|
onCreated() {
|
|
// for infinite scrolling
|
|
// for infinite scrolling
|
|
this.cardlimit = new ReactiveVar(InfiniteScrollIter);
|
|
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() {
|
|
mixins() {
|
|
@@ -388,6 +377,12 @@ BlazeComponent.extendComponent({
|
|
},
|
|
},
|
|
}).register('addCardForm');
|
|
}).register('addCardForm');
|
|
|
|
|
|
|
|
+Template.addCardForm.helpers({
|
|
|
|
+ linkedCardsEnabled() {
|
|
|
|
+ return Meteor.settings.public.linkedCardsEnabled;
|
|
|
|
+ },
|
|
|
|
+});
|
|
|
|
+
|
|
BlazeComponent.extendComponent({
|
|
BlazeComponent.extendComponent({
|
|
onCreated() {
|
|
onCreated() {
|
|
this.selectedBoardId = new ReactiveVar('');
|
|
this.selectedBoardId = new ReactiveVar('');
|