mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
Use database when logged in. Continued.
Thanks to xet7 !
This commit is contained in:
parent
975258ef39
commit
115d23f929
5 changed files with 19 additions and 17 deletions
|
|
@ -102,7 +102,8 @@ function initSortable(boardComponent, $listsDom) {
|
|||
let showDesktopDragHandles = false;
|
||||
currentUser = Meteor.user();
|
||||
if (currentUser) {
|
||||
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
|
||||
showDesktopDragHandles = (currentUser.profile || {})
|
||||
.showDesktopDragHandles;
|
||||
} else {
|
||||
import { Cookies } from 'meteor/ostrio:cookies';
|
||||
const cookies = new Cookies();
|
||||
|
|
@ -203,7 +204,8 @@ BlazeComponent.extendComponent({
|
|||
let showDesktopDragHandles = false;
|
||||
currentUser = Meteor.user();
|
||||
if (currentUser) {
|
||||
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
|
||||
showDesktopDragHandles = (currentUser.profile || {})
|
||||
.showDesktopDragHandles;
|
||||
} else {
|
||||
import { Cookies } from 'meteor/ostrio:cookies';
|
||||
const cookies = new Cookies();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue