mirror of
https://github.com/wekan/wekan.git
synced 2026-01-09 11:08:50 +01:00
feat: grey unicode icons without UI freezes
This commit is contained in:
commit
4408eae158
9 changed files with 198 additions and 1 deletions
|
|
@ -94,6 +94,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