Add show week of year toggle to sidebar

This commit is contained in:
Nadav Tasher 2025-01-01 21:12:38 +02:00
parent 99e579f47d
commit 25ad901fb3
2 changed files with 12 additions and 0 deletions

View file

@ -142,6 +142,9 @@ BlazeComponent.extendComponent({
'click .js-vertical-scrollbars-toggle'() {
ReactiveCache.getCurrentUser().toggleVerticalScrollbars();
},
'click .js-show-week-of-year-toggle'() {
ReactiveCache.getCurrentUser().toggleShowWeekOfYear();
},
'click .js-close-sidebar'() {
Sidebar.toggle()
},
@ -167,6 +170,10 @@ BlazeComponent.extendComponent({
const user = ReactiveCache.getCurrentUser();
return user && user.isVerticalScrollbars();
},
isShowWeekOfYear() {
const user = ReactiveCache.getCurrentUser();
return user && user.isShowWeekOfYear();
},
showActivities() {
let ret = Utils.getCurrentBoard().showActivities ?? false;
return ret;