summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-01-22 23:35:23 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-01-22 23:35:23 -0300
commit7b04f14e3c33db0b1c3ecff003262e7689383a15 (patch)
tree46a80202086eb247982595effa0746439a27efe5 /client/components/lists
parenta14f4ffee297872c72edc99d7b147d18802f7d44 (diff)
downloadwekan-7b04f14e3c33db0b1c3ecff003262e7689383a15.tar.gz
wekan-7b04f14e3c33db0b1c3ecff003262e7689383a15.tar.bz2
wekan-7b04f14e3c33db0b1c3ecff003262e7689383a15.zip
Allow toogle of lists and swimlanes views
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/listBody.jade2
-rw-r--r--client/components/lists/listBody.js7
2 files changed, 8 insertions, 1 deletions
diff --git a/client/components/lists/listBody.jade b/client/components/lists/listBody.jade
index abe0298b..32c6b278 100644
--- a/client/components/lists/listBody.jade
+++ b/client/components/lists/listBody.jade
@@ -4,7 +4,7 @@ template(name="listBody")
if cards.count
+inlinedForm(autoclose=false position="top")
+addCardForm(listId=_id position="top")
- each cards ../../_id
+ each (cards (idOrNull ../../_id))
a.minicard-wrapper.js-minicard(href=absoluteUrl
class="{{#if cardIsSelected}}is-selected{{/if}}"
class="{{#if MultiSelection.isSelected _id}}is-checked{{/if}}")
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 0911f828..2ca654b2 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -98,6 +98,13 @@ BlazeComponent.extendComponent({
MultiSelection.toggle(this.currentData()._id);
},
+ idOrNull(swimlaneId) {
+ const board = Boards.findOne(Session.get('currentBoard'));
+ if (board.view === 'board-view-swimlanes')
+ return swimlaneId;
+ return undefined;
+ },
+
canSeeAddCard() {
return !this.reachedWipLimit() && Meteor.user() && Meteor.user().isBoardMember() && !Meteor.user().isCommentOnly();
},