Mozdef / meteor /client /menu.js
ineso22's picture
Upload folder using huggingface_hub
7c89ed7 verified
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { Tracker } from 'meteor/tracker'
Template.menu.rendered = function() {
Tracker.autorun( function() {
Meteor.subscribe( "features" );
} );
};
Template.menu.helpers( {
haveFeatures: function() {
//subscription has records?
return features.find().count() > 0;
},
// loads kibana dashboards
kibanadashboards: function() {
Meteor.call( 'loadKibanaDashboards' );
return kibanadashboards.find();
}
} );