提交 d6e13608 编写于 作者: N Nicolas Hennion

Merge pull request #759 from notFloran/webui-check-alerts-is-not-empty

[WebUI] check if alerts is empty
......@@ -3,10 +3,15 @@ glancesApp.service('GlancesPluginAlert', function () {
var _alerts = [];
this.setData = function (data, views) {
data = data[_pluginName];
_alerts = [];
for (var i = 0; i < data[_pluginName].length; i++) {
var alertData = data[_pluginName][i];
if(!_.isArray(data)) {
data = [];
}
for (var i = 0; i < data.length; i++) {
var alertData = data[i];
var alert = {};
alert.name = alertData[3];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册