summaryrefslogtreecommitdiffstats
path: root/client/components/lists
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-11-19 21:55:43 +0200
committerLauri Ojansivu <x@xet7.org>2019-11-19 21:55:43 +0200
commit115d23f9293cad8a93f18f75a47a8a65756f71ce (patch)
tree1f3bdb5a56ac08745eeba73bb3b0274098ad84d8 /client/components/lists
parent975258ef39787010d0ecb5d0f6b03ec3e0338e58 (diff)
downloadwekan-115d23f9293cad8a93f18f75a47a8a65756f71ce.tar.gz
wekan-115d23f9293cad8a93f18f75a47a8a65756f71ce.tar.bz2
wekan-115d23f9293cad8a93f18f75a47a8a65756f71ce.zip
Use database when logged in. Continued.
Thanks to xet7 !
Diffstat (limited to 'client/components/lists')
-rw-r--r--client/components/lists/list.js3
-rw-r--r--client/components/lists/listBody.js12
2 files changed, 7 insertions, 8 deletions
diff --git a/client/components/lists/list.js b/client/components/lists/list.js
index 7a51fc6e..d97f4404 100644
--- a/client/components/lists/list.js
+++ b/client/components/lists/list.js
@@ -122,7 +122,8 @@ BlazeComponent.extendComponent({
let showDesktopDragHandles = false;
currentUser = Meteor.user();
if (currentUser) {
- showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
+ showDesktopDragHandles = (currentUser.profile || {})
+ .showDesktopDragHandles;
} else {
if (cookies.has('showDesktopDragHandles')) {
showDesktopDragHandles = true;
diff --git a/client/components/lists/listBody.js b/client/components/lists/listBody.js
index 46d2794e..b0974705 100644
--- a/client/components/lists/listBody.js
+++ b/client/components/lists/listBody.js
@@ -713,13 +713,11 @@ BlazeComponent.extendComponent({
.data()._id;
}
}
- } else {
- if (Utils.boardView() === 'board-view-swimlanes') {
- this.swimlaneId = this.parentComponent()
- .parentComponent()
- .parentComponent()
- .data()._id;
- }
+ } else if (Utils.boardView() === 'board-view-swimlanes') {
+ this.swimlaneId = this.parentComponent()
+ .parentComponent()
+ .parentComponent()
+ .data()._id;
}
},