Merge pull request #2834 from Akuket/master

Issue #2688
This commit is contained in:
Lauri Ojansivu 2019-12-20 16:12:29 +02:00 committed by GitHub
commit 492ed2bdc2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 44 additions and 6 deletions

View file

@ -49,9 +49,10 @@ template(name="addCardForm")
button.primary.confirm(type="submit") {{_ 'add'}}
unless currentBoard.isTemplatesBoard
unless currentBoard.isTemplateBoard
span.quiet
| {{_ 'or'}}
a.js-link {{_ 'link'}}
if linkCardsEnabled
span.quiet
| {{_ 'or'}}
a.js-link {{_ 'link'}}
span.quiet
|  
| /

View file

@ -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() {