mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
feat: add single click mode (#1139)
This commit is contained in:
parent
10e399b3c3
commit
e8b4e9af46
10 changed files with 40 additions and 15 deletions
|
|
@ -11,6 +11,7 @@ type UserDefaults struct {
|
|||
Scope string `json:"scope"`
|
||||
Locale string `json:"locale"`
|
||||
ViewMode users.ViewMode `json:"viewMode"`
|
||||
SingleClick bool `json:"singleClick"`
|
||||
Sorting files.Sorting `json:"sorting"`
|
||||
Perm users.Permissions `json:"perm"`
|
||||
Commands []string `json:"commands"`
|
||||
|
|
@ -22,6 +23,7 @@ func (d *UserDefaults) Apply(u *users.User) {
|
|||
u.Scope = d.Scope
|
||||
u.Locale = d.Locale
|
||||
u.ViewMode = d.ViewMode
|
||||
u.SingleClick = d.SingleClick
|
||||
u.Perm = d.Perm
|
||||
u.Sorting = d.Sorting
|
||||
u.Commands = d.Commands
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue