summaryrefslogtreecommitdiffstats
path: root/client/components/cards
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-25 23:12:20 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:51 +0300
commit94a52080cff14f7587c0ee837c1fca131cd6aff0 (patch)
tree9c4350d54b1d98d7ccfdcf09620e2fb8d5cf2c2d /client/components/cards
parentc9f70cf382707141561732a46dbd3e3e2f159e6e (diff)
downloadwekan-94a52080cff14f7587c0ee837c1fca131cd6aff0.tar.gz
wekan-94a52080cff14f7587c0ee837c1fca131cd6aff0.tar.bz2
wekan-94a52080cff14f7587c0ee837c1fca131cd6aff0.zip
Board level settings for subtasks
Diffstat (limited to 'client/components/cards')
-rw-r--r--client/components/cards/cardDetails.jade5
-rw-r--r--client/components/cards/subtasks.js1
2 files changed, 4 insertions, 2 deletions
diff --git a/client/components/cards/cardDetails.jade b/client/components/cards/cardDetails.jade
index bc0ce45c..789cc4b1 100644
--- a/client/components/cards/cardDetails.jade
+++ b/client/components/cards/cardDetails.jade
@@ -144,8 +144,9 @@ template(name="cardDetails")
hr
+checklists(cardId = _id)
- hr
- +subtasks(cardId = _id)
+ if currentBoard.allowsSubtasks
+ hr
+ +subtasks(cardId = _id)
hr
h3
diff --git a/client/components/cards/subtasks.js b/client/components/cards/subtasks.js
index 335eba36..9c6f265e 100644
--- a/client/components/cards/subtasks.js
+++ b/client/components/cards/subtasks.js
@@ -30,6 +30,7 @@ BlazeComponent.extendComponent({
sort: sortIndex,
swimlaneId,
});
+
// In case the filter is active we need to add the newly inserted card in
// the list of exceptions -- cards that are not filtered. Otherwise the
// card will disappear instantly.