Feature: Grey Icons. This makes WeKan very slow. Not recommended.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-11-25 04:33:42 +02:00
parent 960e2126b4
commit 1b6e8797ec
9 changed files with 160 additions and 1 deletions

View file

@ -90,6 +90,15 @@ Template.memberMenuPopup.events({
'click .js-notifications-drawer-toggle'() {
Session.set('showNotificationsDrawer', !Session.get('showNotificationsDrawer'));
},
'click .js-toggle-grey-icons'(event) {
event.preventDefault();
const currentUser = ReactiveCache.getCurrentUser();
if (!currentUser || !Meteor.userId()) return;
const current = (currentUser.profile && currentUser.profile.GreyIcons) || false;
Meteor.call('toggleGreyIcons', (err) => {
if (err && process.env.DEBUG === 'true') console.error('toggleGreyIcons error', err);
});
},
'click .js-logout'(event) {
event.preventDefault();