mirror of
https://github.com/wekan/wekan.git
synced 2026-03-05 13:20:15 +01:00
Allow vertical scrollbars to be disabled (user preferences, visible by default)
This commit is contained in:
parent
f1810e47e0
commit
3e01231874
11 changed files with 61 additions and 4 deletions
|
|
@ -110,6 +110,11 @@ BlazeComponent.extendComponent({
|
|||
return user && user.isKeyboardShortcuts();
|
||||
},
|
||||
|
||||
isVerticalScrollbars() {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
return user && user.isVerticalScrollbars();
|
||||
},
|
||||
|
||||
events() {
|
||||
return [
|
||||
{
|
||||
|
|
@ -134,6 +139,9 @@ BlazeComponent.extendComponent({
|
|||
'click .js-keyboard-shortcuts-toggle'() {
|
||||
ReactiveCache.getCurrentUser().toggleKeyboardShortcuts();
|
||||
},
|
||||
'click .js-vertical-scrollbars-toggle'() {
|
||||
ReactiveCache.getCurrentUser().toggleVerticalScrollbars();
|
||||
},
|
||||
'click .js-close-sidebar'() {
|
||||
Sidebar.toggle()
|
||||
},
|
||||
|
|
@ -155,6 +163,10 @@ BlazeComponent.extendComponent({
|
|||
return false;
|
||||
}
|
||||
},
|
||||
isVerticalScrollbars() {
|
||||
const user = ReactiveCache.getCurrentUser();
|
||||
return user && user.isVerticalScrollbars();
|
||||
},
|
||||
showActivities() {
|
||||
let ret = Utils.getCurrentBoard().showActivities ?? false;
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue