diff options
author | Lauri Ojansivu <x@xet7.org> | 2019-11-18 22:23:49 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2019-11-18 22:23:49 +0200 |
commit | 96abe3c6914ce37d9fb44da8fda375e40ad65c9e (patch) | |
tree | 8798733b85ca4613a199270bf1577feafc8d183d /client/components/users | |
parent | 2079a5bfa392fbabf63613051e0fa5808fc91be4 (diff) | |
download | wekan-96abe3c6914ce37d9fb44da8fda375e40ad65c9e.tar.gz wekan-96abe3c6914ce37d9fb44da8fda375e40ad65c9e.tar.bz2 wekan-96abe3c6914ce37d9fb44da8fda375e40ad65c9e.zip |
New feature: Now there is popup selection of Lists/Swimlanes/Calendar/Roles.
New feature, not set visible yet, because switching to it does not
work properly yet: Collapsible Swimlanes #2804
Fix: Public board now loads correctly. When you select one of Lists/Swimlanes/Calendar view and
reload webbrowser page, it can change view. Closes #2311
Fix: List sorting commented out. Closes #2800
Fix: Errors hasHiddenMinicardText, hasShowDragHandles, showSort, hasSortBy, profile,
FirefoxAndroid/IE11/Vivaldi/Chromium browsers not working by using
cookies instead of database.
More details at https://github.com/wekan/wekan/issues/2643#issuecomment-554907955
Note: Cookie changes are not always immediate, if there is no effect,
you may need to reload webbrowser page.
Closes #2643 .
Thanks to xet7 !
Diffstat (limited to 'client/components/users')
-rw-r--r-- | client/components/users/userHeader.js | 30 |
1 files changed, 26 insertions, 4 deletions
diff --git a/client/components/users/userHeader.js b/client/components/users/userHeader.js index 194f990f..3a5bb4e3 100644 --- a/client/components/users/userHeader.js +++ b/client/components/users/userHeader.js @@ -162,19 +162,41 @@ Template.changeLanguagePopup.events({ Template.changeSettingsPopup.helpers({ showDesktopDragHandles() { - return Meteor.user().hasShowDesktopDragHandles(); + import { Cookies } from 'meteor/ostrio:cookies'; + const cookies = new Cookies(); + if (cookies.has('showDesktopDragHandles')) { + return true; + } else { + return false; + } }, hiddenSystemMessages() { - return Meteor.user().hasHiddenSystemMessages(); + const currentUser = Meteor.user(); + if (currentUser) { + return Meteor.user().hasHiddenSystemMessages(); + } else { + return false; + } }, showCardsCountAt() { - return Meteor.user().getLimitToShowCardsCount(); + const currentUser = Meteor.user(); + if (currentUser) { + return Meteor.user().getLimitToShowCardsCount(); + } else { + return false; + } }, }); Template.changeSettingsPopup.events({ 'click .js-toggle-desktop-drag-handles'() { - Meteor.call('toggleDesktopDragHandles'); + import { Cookies } from 'meteor/ostrio:cookies'; + const cookies = new Cookies(); + if (cookies.has('showDesktopDragHandles')) { + cookies.remove('showDesktopDragHandles'); //true + } else { + cookies.set('showDesktopDragHandles', 'true'); //true + } }, 'click .js-toggle-system-messages'() { Meteor.call('toggleSystemMessages'); |