summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-01-19 12:22:03 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-01-19 12:22:03 -0300
commit690a5b970319ceabc0be965152187d7098022621 (patch)
tree1e86d3ef8a3523b981debc27e4fbe25ebcad8713 /client/components/lists
parent8b6a2eade3f1e8e05ee73568c8b69393d2b42827 (diff)
downloadwekan-690a5b970319ceabc0be965152187d7098022621.tar.gz
wekan-690a5b970319ceabc0be965152187d7098022621.tar.bz2
wekan-690a5b970319ceabc0be965152187d7098022621.zip
First swimlane draft, no functionality
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/list.js2
-rw-r--r--client/components/lists/listBody.jade2
-rw-r--r--client/components/lists/listBody.js2
3 files changed, 4 insertions, 2 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index a65ccc56..1d38f8f6 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -18,7 +18,7 @@ BlazeComponent.extendComponent({
// callback, we basically solve all issues related to reactive updates. A
// comment below provides further details.
onRendered() {
- const boardComponent = this.parentComponent();
+ const boardComponent = this.parentComponent().parentComponent();
const itemsSelector = '.js-minicard:not(.placeholder, .js-card-composer)';
const $cards = this.$('.js-minicards');
$cards.sortable({
diff --git a/client/components/lists/listBody.jade b/client/components/lists/listBody.jade
index 840fd801..abe0298b 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
+ each cards ../../_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 fe2f1630..7a63eab6 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -36,6 +36,7 @@ BlazeComponent.extendComponent({
const members = formComponent.members.get();
const labelIds = formComponent.labels.get();
+ const swimlaneId = this.parentComponent().parentComponent().data()._id;
if (title) {
const _id = Cards.insert({
title,
@@ -44,6 +45,7 @@ BlazeComponent.extendComponent({
listId: this.data()._id,
boardId: this.data().board()._id,
sort: sortIndex,
+ swimlaneId: 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