hiding controller id chooser

This commit is contained in:
Senad Uka
2016-11-19 05:03:50 +01:00
parent 3af4a6d24a
commit f937f0ac2c
4 changed files with 19 additions and 2 deletions

View File

@@ -9,6 +9,14 @@ Tracker.autorun(function() {
function safeRoute(route) {
return function () {
var controllerId = this.params.query.controller_id;
if(controllerId) {
Session.setPersistent('controller_id', controllerId);
Session.setPersistent('hide_controller_selection', true);
} else {
Session.setPersistent('hide_controller_selection', false);
}
console.log('go ', route);
if (Meteor.zoblak.client.accessible(route)) {
Session.set('templateName', route);