mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +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
|
|
@ -199,7 +199,8 @@ BlazeComponent.extendComponent({
|
||||||
let showDesktopDragHandles = false;
|
let showDesktopDragHandles = false;
|
||||||
currentUser = Meteor.user();
|
currentUser = Meteor.user();
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
|
showDesktopDragHandles = (currentUser.profile || {})
|
||||||
|
.showDesktopDragHandles;
|
||||||
} else {
|
} else {
|
||||||
if (cookies.has('showDesktopDragHandles')) {
|
if (cookies.has('showDesktopDragHandles')) {
|
||||||
showDesktopDragHandles = true;
|
showDesktopDragHandles = true;
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,8 @@ BlazeComponent.extendComponent({
|
||||||
let showDesktopDragHandles = false;
|
let showDesktopDragHandles = false;
|
||||||
currentUser = Meteor.user();
|
currentUser = Meteor.user();
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
|
showDesktopDragHandles = (currentUser.profile || {})
|
||||||
|
.showDesktopDragHandles;
|
||||||
} else {
|
} else {
|
||||||
if (cookies.has('showDesktopDragHandles')) {
|
if (cookies.has('showDesktopDragHandles')) {
|
||||||
showDesktopDragHandles = true;
|
showDesktopDragHandles = true;
|
||||||
|
|
|
||||||
|
|
@ -713,14 +713,12 @@ BlazeComponent.extendComponent({
|
||||||
.data()._id;
|
.data()._id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if (Utils.boardView() === 'board-view-swimlanes') {
|
||||||
if (Utils.boardView() === 'board-view-swimlanes') {
|
|
||||||
this.swimlaneId = this.parentComponent()
|
this.swimlaneId = this.parentComponent()
|
||||||
.parentComponent()
|
.parentComponent()
|
||||||
.parentComponent()
|
.parentComponent()
|
||||||
.data()._id;
|
.data()._id;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onRendered() {
|
onRendered() {
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,8 @@ function initSortable(boardComponent, $listsDom) {
|
||||||
let showDesktopDragHandles = false;
|
let showDesktopDragHandles = false;
|
||||||
currentUser = Meteor.user();
|
currentUser = Meteor.user();
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
|
showDesktopDragHandles = (currentUser.profile || {})
|
||||||
|
.showDesktopDragHandles;
|
||||||
} else {
|
} else {
|
||||||
import { Cookies } from 'meteor/ostrio:cookies';
|
import { Cookies } from 'meteor/ostrio:cookies';
|
||||||
const cookies = new Cookies();
|
const cookies = new Cookies();
|
||||||
|
|
@ -203,7 +204,8 @@ BlazeComponent.extendComponent({
|
||||||
let showDesktopDragHandles = false;
|
let showDesktopDragHandles = false;
|
||||||
currentUser = Meteor.user();
|
currentUser = Meteor.user();
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
showDesktopDragHandles = (currentUser.profile || {}).showDesktopDragHandles;
|
showDesktopDragHandles = (currentUser.profile || {})
|
||||||
|
.showDesktopDragHandles;
|
||||||
} else {
|
} else {
|
||||||
import { Cookies } from 'meteor/ostrio:cookies';
|
import { Cookies } from 'meteor/ostrio:cookies';
|
||||||
const cookies = new Cookies();
|
const cookies = new Cookies();
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ Utils = {
|
||||||
boardView() {
|
boardView() {
|
||||||
currentUser = Meteor.user();
|
currentUser = Meteor.user();
|
||||||
if (currentUser) {
|
if (currentUser) {
|
||||||
return (currentUser.profile || {}).boardView
|
return (currentUser.profile || {}).boardView;
|
||||||
} else {
|
} else {
|
||||||
import { Cookies } from 'meteor/ostrio:cookies';
|
import { Cookies } from 'meteor/ostrio:cookies';
|
||||||
const cookies = new Cookies();
|
const cookies = new Cookies();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue