aboutsummaryrefslogtreecommitdiffstats
path: root/ui/lib/router.js
diff options
context:
space:
mode:
authorKoren Lev <korenlev@gmail.com>2017-09-06 19:47:54 +0300
committerKoren Lev <korenlev@gmail.com>2017-09-06 19:47:54 +0300
commitfc2702ba260b7a8705ee9f2d1f606af8dfa768da (patch)
tree1a9be5648c0148a0624de550351b5dfe75b6c5d4 /ui/lib/router.js
parent7e0fce9122cc61aef397c7a4e2780fb018404513 (diff)
ui updates
Change-Id: I2d3f87e34a74ce21bbb9e3df989b6527337b7228 Signed-off-by: Koren Lev <korenlev@gmail.com>
Diffstat (limited to 'ui/lib/router.js')
-rw-r--r--ui/lib/router.js15
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;
}
});