summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorAndrés Manelli <andresmanelli@gmail.com>2018-01-19 16:00:02 -0300
committerAndrés Manelli <andresmanelli@gmail.com>2018-01-19 16:00:02 -0300
commitee2a43dd5b4b5296f61f68b46fd85521224f571d (patch)
tree124f6eedc070ba926b8dc3f47985bb6951be3d92 /client/components/lists
parent690a5b970319ceabc0be965152187d7098022621 (diff)
downloadwekan-ee2a43dd5b4b5296f61f68b46fd85521224f571d.tar.gz
wekan-ee2a43dd5b4b5296f61f68b46fd85521224f571d.tar.bz2
wekan-ee2a43dd5b4b5296f61f68b46fd85521224f571d.zip
Add siwmlane button. Allow card drop between swimlanes
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/list.js5
-rw-r--r--client/components/lists/list.styl1
2 files changed, 3 insertions, 3 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index 1d38f8f6..e922a3fd 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -55,6 +55,7 @@ BlazeComponent.extendComponent({
const nCards = MultiSelection.isActive() ? MultiSelection.count() : 1;
const sortIndex = calculateIndex(prevCardDom, nextCardDom, nCards);
const listId = Blaze.getData(ui.item.parents('.list').get(0))._id;
+ const swimlaneId = Blaze.getData(ui.item.parents('.swimlane').get(0))._id;
// Normally the jquery-ui sortable library moves the dragged DOM element
// to its new position, which disrupts Blaze reactive updates mechanism
@@ -67,12 +68,12 @@ BlazeComponent.extendComponent({
if (MultiSelection.isActive()) {
Cards.find(MultiSelection.getMongoSelector()).forEach((card, i) => {
- card.move(listId, sortIndex.base + i * sortIndex.increment);
+ card.move(swimlaneId, listId, sortIndex.base + i * sortIndex.increment);
});
} else {
const cardDomElement = ui.item.get(0);
const card = Blaze.getData(cardDomElement);
- card.move(listId, sortIndex.base);
+ card.move(swimlaneId, listId, sortIndex.base);
}
boardComponent.setIsDragging(false);
},
diff --git a/client/components/lists/list.styl b/client/components/lists/list.styl
index 21d267ca..c3753360 100644
--- a/client/components/lists/list.styl
+++ b/client/components/lists/list.styl
@@ -9,7 +9,6 @@
// Even if this background color is the same as the body we can't leave it
// transparent, because that won't work during a list drag.
background: darken(white, 13%)
- height: 100%
border-left: 1px solid darken(white, 20%)
padding: 0
float: left