Hide minicard label text: per user checkbox setting at sidebar.

Thanks to xet7 !

Closes #1466,
closes #2561
This commit is contained in:
Lauri Ojansivu 2019-08-07 18:11:34 +03:00
parent 9e60b41438
commit f7e0b837d3
56 changed files with 36308 additions and 36205 deletions

View file

@ -101,6 +101,9 @@ BlazeComponent.extendComponent({
'click .js-hide-sidebar': this.hide,
'click .js-toggle-sidebar': this.toggle,
'click .js-back-home': this.setView,
'click .js-toggle-minicard-label-text'() {
Meteor.call('toggleMinicardLabelText');
},
'click .js-shortcuts'() {
FlowRouter.go('shortcuts');
},
@ -111,6 +114,12 @@ BlazeComponent.extendComponent({
Blaze.registerHelper('Sidebar', () => Sidebar);
Template.homeSidebar.helpers({
hiddenMinicardLabelText() {
return Meteor.user().hasHiddenMinicardLabelText();
},
});
EscapeActions.register(
'sidebarView',
() => {