зеркало из https://github.com/mozilla/MozDef.git
clean up some old-style helper routines in support of #290
This commit is contained in:
Родитель
165a9e8cd5
Коммит
7d2842886a
|
@ -14,7 +14,8 @@ if (Meteor.isClient) {
|
|||
Session.set('alertsSearch',null);
|
||||
Session.set('alertsDisplayed',0);
|
||||
|
||||
Template.alertssummary.selectedalerts = function () {
|
||||
Template.alertssummary.helpers({
|
||||
selectedalerts: function () {
|
||||
//console.log(moment().format(),Session.get('alertsSearch'));
|
||||
|
||||
Session.set('alertsDisplayed',
|
||||
|
@ -40,8 +41,8 @@ if (Meteor.isClient) {
|
|||
sort: {utcepoch: -1},
|
||||
limit: Session.get('alertsrecordlimit'),
|
||||
reactive:true})
|
||||
};
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Template.alertssummary.events({
|
||||
"click .reset": function(e,t){
|
||||
|
|
|
@ -13,27 +13,30 @@ if (Meteor.isClient) {
|
|||
|
||||
//elastic search cluster template functions
|
||||
//return es health items
|
||||
Template.mozdefhealth.esclusterhealthitems = function () {
|
||||
return healthescluster.find();
|
||||
};
|
||||
Template.mozdefhealth.helpers({
|
||||
|
||||
Template.mozdefhealth.frontendhealthitems = function () {
|
||||
esclusterhealthitems: function () {
|
||||
return healthescluster.find();
|
||||
},
|
||||
|
||||
frontendhealthitems: function () {
|
||||
return healthfrontend.find({},
|
||||
{fields:{},
|
||||
sort: {hostname: 1}
|
||||
});
|
||||
};
|
||||
},
|
||||
|
||||
Template.mozdefhealth.esnodeshealthitems = function () {
|
||||
esnodeshealthitems: function () {
|
||||
return healthesnodes.find({},
|
||||
{fields:{},
|
||||
sort: {hostname: 1}
|
||||
});
|
||||
};
|
||||
},
|
||||
|
||||
Template.mozdefhealth.eshotthreadshealthitems = function () {
|
||||
eshotthreadshealthitems: function () {
|
||||
return healtheshotthreads.find();
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
Template.mozdefhealth.rendered = function () {
|
||||
var ringChartEPS = dc.pieChart("#ringChart-EPS");
|
||||
|
|
Загрузка…
Ссылка в новой задаче