mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
parent
3257110673
commit
324f3f7794
11 changed files with 210 additions and 109 deletions
|
|
@ -496,30 +496,14 @@ Utils = {
|
|||
|
||||
// returns if desktop drag handles are enabled
|
||||
isShowDesktopDragHandles() {
|
||||
if (this.isTouchScreen()) {
|
||||
return true;
|
||||
/*
|
||||
const currentUser = ReactiveCache.getCurrentUser();
|
||||
if (currentUser) {
|
||||
return (currentUser.profile || {}).showDesktopDragHandles;
|
||||
} else if (window.localStorage.getItem('showDesktopDragHandles')) {
|
||||
//
|
||||
if (window.localStorage.getItem('showDesktopDragHandles')) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
*/
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
// Always show drag handles on all displays
|
||||
return true;
|
||||
},
|
||||
|
||||
// returns if mini screen or desktop drag handles
|
||||
isTouchScreenOrShowDesktopDragHandles() {
|
||||
// Always enable drag handles for mobile screens (touch devices)
|
||||
return this.isTouchScreen() || this.isMiniScreen();
|
||||
//return this.isTouchScreen() || this.isShowDesktopDragHandles();
|
||||
//return this.isShowDesktopDragHandles();
|
||||
// Always enable drag handles for all displays
|
||||
return true;
|
||||
},
|
||||
|
||||
calculateIndexData(prevData, nextData, nItems = 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue