ui and settings ready
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
Tracker.autorun(function () {
|
||||
Tracker.autorun(function() {
|
||||
var id = Session.get('controller_id');
|
||||
if (id) {
|
||||
Meteor.subscribe("sensor_data", id);
|
||||
@@ -6,3 +6,15 @@ Tracker.autorun(function () {
|
||||
Meteor.subscribe('pictures', id);
|
||||
}
|
||||
});
|
||||
|
||||
Router.route('/', function() {
|
||||
if (accessible('start')) {
|
||||
Session.set('templateName', 'start');
|
||||
} else {
|
||||
Session.set('templateName', 'no_access')
|
||||
}
|
||||
});
|
||||
|
||||
Router.route('/farmalarm', function() {
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user