Skip to content

Commit

Permalink
fix alerting icons on panels, #556
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderzobnin committed Apr 26, 2018
1 parent 2083deb commit 2f86730
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
10 changes: 3 additions & 7 deletions dist/datasource-zabbix/zabbixAlerting.service.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/datasource-zabbix/zabbixAlerting.service.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions src/datasource-zabbix/zabbixAlerting.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,7 @@ class ZabbixAlertingService {
}

getPanelModels() {
return _.flatten(_.map(this.dashboardSrv.dash.rows, row => {
if (row.collapse) {
return [];
} else {
return row.panels;
}
}));
return _.filter(this.dashboardSrv.dash.panels, panel => panel.type !== 'row');
}

getPanelModel(panelId) {
Expand Down

0 comments on commit 2f86730

Please sign in to comment.