summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorGuillaume <gcassou@sii.fr>2019-11-29 14:48:44 +0100
committerGuillaume <gcassou@sii.fr>2019-11-29 14:48:44 +0100
commit0a1e7006b38979fe40653834aa037341c6ac3355 (patch)
tree0a487d70b9357f7bc741e593d8b242a3f85ed4e2 /client/components/lists
parent07724f99ae909b044f17bc3c0b1f800237747f86 (diff)
downloadwekan-0a1e7006b38979fe40653834aa037341c6ac3355.tar.gz
wekan-0a1e7006b38979fe40653834aa037341c6ac3355.tar.bz2
wekan-0a1e7006b38979fe40653834aa037341c6ac3355.zip
Using LINKED_CARDS_ENABLED
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.jade7
-rw-r--r--client/components/lists/listBody.js11
2 files changed, 15 insertions, 3 deletions
diff --git a/client/components/lists/listBody.jade b/client/components/lists/listBody.jade
index 2f175205..517b9d93 100644
--- a/client/components/lists/listBody.jade
+++ b/client/components/lists/listBody.jade
@@ -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
| &nbsp;
| /
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() {