mirror of
https://github.com/wekan/wekan.git
synced 2026-01-21 16:56:11 +01:00
Added back feature: Toggle Drag Handles. Improved positions of Add List etc buttons.
Thanks to xet7 !
This commit is contained in:
parent
00793c39f8
commit
5cb712bee4
12 changed files with 85 additions and 86 deletions
|
|
@ -648,14 +648,18 @@ Utils = {
|
|||
|
||||
// returns if desktop drag handles are enabled
|
||||
isShowDesktopDragHandles() {
|
||||
// Always show drag handles on all displays
|
||||
return true;
|
||||
const currentUser = Meteor.user();
|
||||
if (currentUser) {
|
||||
return currentUser.hasShowDesktopDragHandles();
|
||||
} else {
|
||||
// For non-logged-in users, check localStorage
|
||||
return window.localStorage.getItem('showDesktopDragHandles') === 'true';
|
||||
}
|
||||
},
|
||||
|
||||
// returns if mini screen or desktop drag handles
|
||||
isTouchScreenOrShowDesktopDragHandles() {
|
||||
// Always enable drag handles for all displays
|
||||
return true;
|
||||
return Utils.isTouchScreen() || Utils.isShowDesktopDragHandles();
|
||||
},
|
||||
|
||||
calculateIndexData(prevData, nextData, nItems = 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue