diff options
Diffstat (limited to 'client/components/lists/listBody.js')
-rw-r--r-- | client/components/lists/listBody.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index b0974705..6ed95a2a 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -5,6 +5,17 @@ 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() { |