diff options
Diffstat (limited to 'client/components/lists')
-rw-r--r-- | client/components/lists/listBody.jade | 2 | ||||
-rw-r--r-- | client/components/lists/listBody.js | 17 |
2 files changed, 7 insertions, 12 deletions
diff --git a/client/components/lists/listBody.jade b/client/components/lists/listBody.jade index 517b9d93..335e42cd 100644 --- a/client/components/lists/listBody.jade +++ b/client/components/lists/listBody.jade @@ -49,7 +49,7 @@ template(name="addCardForm") button.primary.confirm(type="submit") {{_ 'add'}} unless currentBoard.isTemplatesBoard unless currentBoard.isTemplateBoard - if linkCardsEnabled + if linkedCardsEnabled span.quiet | {{_ 'or'}} a.js-link {{_ 'link'}} diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js index 6ed95a2a..2851b69a 100644 --- a/client/components/lists/listBody.js +++ b/client/components/lists/listBody.js @@ -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(''); |