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