Skip to content

Commit 49cad1d

Browse files
author
Robert Jackson
committed
Make drilling in when grouped by name function properly.
1 parent 2b7c55a commit 49cad1d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

app/components/slow-node-times.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export default Ember.Component.extend({
6464
nodes = [];
6565
for (let pluginName in pluginNameMap) {
6666
nodes.push({
67+
groupedByPluginName: true,
6768
label: { name: pluginName, broccoliPluginName: pluginNameMap[pluginName].count },
6869
_stats: {
6970
time: { plugin: pluginNameMap[pluginName].time }
@@ -90,7 +91,12 @@ export default Ember.Component.extend({
9091

9192
actions: {
9293
'focus-node'(node) {
93-
this.get('graph').selectNode(node);
94+
if (node.groupedByPluginName) {
95+
this.set('groupByPluginName', false);
96+
this.set('pluginNameFilter', node.label.name);
97+
} else {
98+
this.get('graph').selectNode(node);
99+
}
94100
}
95101
}
96102
});

0 commit comments

Comments
 (0)