diff --git a/CHANGELOG.md b/CHANGELOG.md index c65e9cccc..36381c275 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,11 @@ This release adds the following new features: `sudo snap set wekan mongo-url='...'`](https://github.com/wekan/wekan/commit/5510c2a37dc6bcfa0ec588eceb8dc9f32cec9851). Thanks to xet7. +and adds the following improvements: + +- [Improvements in activities design](https://github.com/wekan/wekan/pull/3374). + Thanks to helioguardabaxo. + and fixes the following bugs: - [Fix typo on MONGO_URL on Snap](https://github.com/wekan/wekan/commit/05a72f7c627e05ac4ce38cb9588f2aac45273ce8). diff --git a/client/components/cards/cardDetails.js b/client/components/cards/cardDetails.js index 19cda5cf1..9da938df0 100644 --- a/client/components/cards/cardDetails.js +++ b/client/components/cards/cardDetails.js @@ -257,7 +257,7 @@ BlazeComponent.extendComponent({ ) { $checklistsDom.sortable('option', 'disabled', disabled); if (Utils.isMiniScreenOrShowDesktopDragHandles()) { - $checklistsDom.sortable({ handle: '.checklist-handle'}); + $checklistsDom.sortable({ handle: '.checklist-handle' }); } } if ($subtasksDom.data('uiSortable') || $subtasksDom.data('sortable')) { diff --git a/client/config/blazeHelpers.js b/client/config/blazeHelpers.js index e651b0f27..a4c610612 100644 --- a/client/config/blazeHelpers.js +++ b/client/config/blazeHelpers.js @@ -31,6 +31,10 @@ Blaze.registerHelper('concat', (...args) => args.slice(0, -1).join('')); Blaze.registerHelper('isMiniScreen', () => Utils.isMiniScreen()); -Blaze.registerHelper('isShowDesktopDragHandles', () => Utils.isShowDesktopDragHandles()); +Blaze.registerHelper('isShowDesktopDragHandles', () => + Utils.isShowDesktopDragHandles(), +); -Blaze.registerHelper('isMiniScreenOrShowDesktopDragHandles', () => Utils.isMiniScreenOrShowDesktopDragHandles()); +Blaze.registerHelper('isMiniScreenOrShowDesktopDragHandles', () => + Utils.isMiniScreenOrShowDesktopDragHandles(), +); diff --git a/client/lib/utils.js b/client/lib/utils.js index 0baefc129..ac815ba18 100644 --- a/client/lib/utils.js +++ b/client/lib/utils.js @@ -192,7 +192,7 @@ Utils = { // returns if desktop drag handles are enabled isShowDesktopDragHandles() { - let currentUser = Meteor.user(); + const currentUser = Meteor.user(); if (currentUser) { return (currentUser.profile || {}).showDesktopDragHandles; } else if (cookies.has('showDesktopDragHandles')) { @@ -204,7 +204,7 @@ Utils = { // returns if mini screen or desktop drag handles isMiniScreenOrShowDesktopDragHandles() { - return this.isMiniScreen() || this.isShowDesktopDragHandles() + return this.isMiniScreen() || this.isShowDesktopDragHandles(); }, calculateIndexData(prevData, nextData, nItems = 1) {