mirror of
https://github.com/wekan/wekan.git
synced 2026-02-02 06:31:47 +01:00
commit
492ed2bdc2
8 changed files with 44 additions and 6 deletions
|
|
@ -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
|
||||
|
|
||||
| /
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue