Procházet zdrojové kódy

Update ChangeLog. Fix lint.

Lauri Ojansivu před 4 roky
rodič
revize
bec0b7ec56

+ 5 - 0
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).

+ 1 - 1
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')) {

+ 6 - 2
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(),
+);

+ 2 - 2
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) {