diff options
author | Romulus Urakagi Tsai <urakagi@gmail.com> | 2019-08-12 01:43:21 +0000 |
---|---|---|
committer | Romulus Urakagi Tsai <urakagi@gmail.com> | 2019-08-12 01:43:21 +0000 |
commit | efdab37f3faeb125a9b8d31969762932bbbc0c4b (patch) | |
tree | 5fdb667b151819325e340a23c7250bd2bb638137 /client/components/sidebar | |
parent | 4f4e0a21f80019048aad6b7a679899c048cb3865 (diff) | |
parent | db1cf5bb64f10317742361637d239f08bec141b8 (diff) | |
download | wekan-efdab37f3faeb125a9b8d31969762932bbbc0c4b.tar.gz wekan-efdab37f3faeb125a9b8d31969762932bbbc0c4b.tar.bz2 wekan-efdab37f3faeb125a9b8d31969762932bbbc0c4b.zip |
Merge branch 'master' of https://github.com/wekan/wekan
Diffstat (limited to 'client/components/sidebar')
-rw-r--r-- | client/components/sidebar/sidebar.jade | 5 | ||||
-rw-r--r-- | client/components/sidebar/sidebar.js | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade index 2b869314..2dfe41b3 100644 --- a/client/components/sidebar/sidebar.jade +++ b/client/components/sidebar/sidebar.jade @@ -22,6 +22,11 @@ template(name='homeSidebar') +membersWidget hr +labelsWidget + ul#cards.label-text-hidden + a.flex.js-toggle-minicard-label-text + span {{_ 'hide-minicard-label-text'}} + b + .materialCheckBox(class="{{#if hiddenMinicardLabelText}}is-checked{{/if}}") hr unless currentUser.isNoComments h3 diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js index 8468595a..8b98fd7e 100644 --- a/client/components/sidebar/sidebar.js +++ b/client/components/sidebar/sidebar.js @@ -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', () => { |