--- a/cms/app-client/app/components/discourses-component.js Sun Oct 02 14:57:37 2016 +0200
+++ b/cms/app-client/app/components/discourses-component.js Sun Oct 02 15:24:56 2016 +0200
@@ -65,7 +65,7 @@
});
item.append("span")
- .html(function(d) { return d.name + ' <span class="count">(' + d.value + ')</span>'; })
+ .html(function(d) { return d.name + ' <span class="count">(' + d.count + ')</span>'; })
.style("margin-left", function() { return ( Ember.$(this).width() > Ember.$(this).parent().width() ? - ( Ember.$(this).width() / 2 ) + ( Ember.$(this).parent().width() / 2 ) : 0 ) + 'px'; })
.style("margin-top", function() { return Ember.$(this).parent().height() / 2 - Ember.$(this).height() / 2 + 'px'; });
});
@@ -81,10 +81,12 @@
var discourse = json[key];
var category_key = self.get('constants').DISCOURSE_CATEGORY_KEYS[key];
var category_value = self.get('constants').DISCOURSE_CATEGORY_VALUES[category_key];
+
children.push({
'id': key,
'name': discourse.label,
'value': discourse.count,
+ 'count': discourse.count,
'fill': category_value.fill,
'stroke': category_value.stroke
});