Drag handle toggle at top left: Each touch/non-touch screen can

use different setting, because it's saved to browser localstorage,
not database. For example, when using Firefox Multi-Account Containers AddOn,
different browsers etc, when logged in as same user.

Thanks to hatl and xet7 !

Fixes #4715
This commit is contained in:
Lauri Ojansivu 2022-10-23 15:17:41 +03:00
parent 2d16e35ac4
commit e214bc55dc
5 changed files with 38 additions and 11 deletions

View file

@ -6,6 +6,12 @@ template(name="header")
The first link goes to the boards page.
if currentUser
#header-quick-access(class=currentBoard.colorClass)
a.js-toggle-desktop-drag-handles(title="{{_ 'show-desktop-drag-handles'}}" alt="{{_ 'show-desktop-drag-handles'}}")
i.fa.fa-arrows
if isShowDesktopDragHandles
i.fa.fa-check-square-o
unless isShowDesktopDragHandles
i.fa.fa-times
if isMiniScreen
span
a(href="{{pathFor 'home'}}")