diff options
Diffstat (limited to 'ui/lib/router.js')
-rw-r--r-- | ui/lib/router.js | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/ui/lib/router.js b/ui/lib/router.js index 37e8195..0a6e7f1 100644 --- a/ui/lib/router.js +++ b/ui/lib/router.js @@ -87,7 +87,7 @@ Router.route('/', { if (this.ready()) this.layout('landing'); else - this.render('loading'); + this.render('loading'); } }); @@ -115,8 +115,8 @@ Router.route('home', { } */ - // if the sub handle returned from waitOn ready() method returns - // true then we're ready to go ahead and render the page. + // if the sub handle returned from waitOn ready() method returns + // true then we're ready to go ahead and render the page. this.render('home'); } @@ -186,6 +186,10 @@ Router.route('/messages-list', function () { this.render('MessagesList'); }, { }); +Router.route('/configuration', function () { + this.render('Configuration'); +}, { }); + Router.route('/message', function () { let that = this; let params = that.params; @@ -317,6 +321,11 @@ Router.route('environment', { data = R.assoc('selectedNodeId', selectedNodeId, data); } + let refresh = that.params.query.r; + if (! R.isNil(refresh)) { + data = R.assoc('refresh', refresh, data); + } + return data; } }); |