summaryrefslogtreecommitdiffstats
path: root/client/components/cards/cardDetails.js
diff options
context:
space:
mode:
authorNicu Tofan <nicu.tofan@gmail.com>2018-06-26 02:13:31 +0300
committerNicu Tofan <nicu.tofan@gmail.com>2018-06-26 14:32:51 +0300
commitc0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145 (patch)
tree991e195f99639c69479381c4a72c17b6da1ba115 /client/components/cards/cardDetails.js
parent94a52080cff14f7587c0ee837c1fca131cd6aff0 (diff)
downloadwekan-c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145.tar.gz
wekan-c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145.tar.bz2
wekan-c0ffd6c20f2a04bd1436ea2f0953f1c3c8afe145.zip
Show parent in card (no links, yet)
Diffstat (limited to 'client/components/cards/cardDetails.js')
-rw-r--r--client/components/cards/cardDetails.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js
index 4731e448..1c85580f 100644
--- a/client/components/cards/cardDetails.js
+++ b/client/components/cards/cardDetails.js
@@ -70,6 +70,14 @@ BlazeComponent.extendComponent({
}
},
+ presentParentTask() {
+ let result = this.currentBoard.presentParentTask;
+ if ((result === null) || (result === undefined)) {
+ result = 'no-parent';
+ }
+ return result;
+ },
+
onRendered() {
if (!Utils.isMiniScreen()) this.scrollParentContainer();
const $checklistsDom = this.$('.card-checklist-items');