Commit d525d147 authored by Curtis Adam's avatar Curtis Adam

Change the description of the show wordcloud / label toggle button depending on the active mode

parent 3dc68fd7
......@@ -947,7 +947,10 @@
"from": "Ab",
"noResults": "Keine Karteien oder Repetitorien vorhanden oder keine Ergebnisse für diese Filtereinstellung",
"sort": "Sortieren ",
"displayMode": "Wolke"
"displayMode": {
"wordcloud": "Wolke",
"list": "Liste"
}
},
"infinite-scroll": {
"remainingCardsets": "__current__ von __total__ Karteien",
......
<template name="filterItemDisplayModeButton">
<li class="dropdown hidden-xs">
<a id="displayModeBtn"
role="button">{{_ "filter-pool.displayMode"}}
role="button">
{{#if isWordcloudActive}}
{{_ "filter-pool.displayMode.wordcloud"}}
{{else}}
{{_ "filter-pool.displayMode.list"}}
{{/if}}
</a>
</li>
</template>
......@@ -25,6 +25,12 @@ Template.filterItemDisplayModeButton.onRendered(function () {
});
});
Template.filterItemDisplayModeButton.helpers({
isWordcloudActive: function () {
return Session.get('filterDisplayWordcloud');
}
});
Template.filterItemDisplayModeButton.events({
'click #displayModeBtn': function () {
if (Session.get('filterDisplayWordcloud')) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment