added icon binding
This commit is contained in:
parent
66dccfe8d0
commit
919999b114
|
@ -1,6 +1,6 @@
|
|||
<div>
|
||||
<button class='btn standard dropdown-toggle' data-toggle='dropdown'>
|
||||
<i class="fa fa-circle {{view.icon}}"></i> {{view.text}}
|
||||
<i {{bind-attr class=view.icon}}"></i> {{view.text}}
|
||||
<span class='caret'></span>
|
||||
</button>
|
||||
|
||||
|
|
|
@ -54,9 +54,9 @@ Discourse.CategoryNotificationsButton = Discourse.View.extend({
|
|||
|
||||
var icon = (function() {
|
||||
switch (key) {
|
||||
case 'watching': return 'heatmap-high';
|
||||
case 'tracking': return 'fa-circle heatmap-low';
|
||||
case 'muted': return 'fa-times-circle';
|
||||
case 'watching': return 'fa fa-circle heatmap-high';
|
||||
case 'tracking': return 'fa fa-circle heatmap-low';
|
||||
case 'muted': return 'fa fa-times-circle';
|
||||
default: return '';
|
||||
}
|
||||
})();
|
||||
|
|
Loading…
Reference in New Issue