mirror of
https://github.com/wekan/wekan.git
synced 2026-02-22 16:04:08 +01:00
Feature: Grey Icons. This makes WeKan very slow. Not recommended.
Thanks to xet7 !
This commit is contained in:
parent
960e2126b4
commit
1b6e8797ec
9 changed files with 160 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue