mirror of
https://github.com/wekan/wekan.git
synced 2026-03-03 12:20:15 +01:00
Hide minicard label text: per user checkbox setting at sidebar.
Thanks to xet7 ! Closes #1466, closes #2561
This commit is contained in:
parent
9e60b41438
commit
f7e0b837d3
56 changed files with 36308 additions and 36205 deletions
|
|
@ -8,9 +8,12 @@ template(name="minicard")
|
|||
if labels
|
||||
.minicard-labels
|
||||
each labels
|
||||
span.card-label(class="card-label-{{color}}" title=name)
|
||||
+viewer
|
||||
= name
|
||||
unless hiddenMinicardLabelText
|
||||
span.card-label(class="card-label-{{color}}" title=name)
|
||||
+viewer
|
||||
= name
|
||||
if hiddenMinicardLabelText
|
||||
.minicard-label(class="card-label-{{color}}" title="{{name}}")
|
||||
.minicard-title
|
||||
.handle
|
||||
.fa.fa-arrows
|
||||
|
|
|
|||
|
|
@ -16,6 +16,17 @@ BlazeComponent.extendComponent({
|
|||
Utils.goBoardId(this.data().linkedId);
|
||||
},
|
||||
},
|
||||
{
|
||||
'click .js-toggle-minicard-label-text'() {
|
||||
Meteor.call('toggleMinicardLabelText');
|
||||
},
|
||||
},
|
||||
];
|
||||
},
|
||||
}).register('minicard');
|
||||
|
||||
Template.minicard.helpers({
|
||||
hiddenMinicardLabelText() {
|
||||
return Meteor.user().hasHiddenMinicardLabelText();
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue