summaryrefslogtreecommitdiffstats
path: root/client/config
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-12-08 16:05:59 -0500
committerMaxime Quandalle <maxime@quandalle.com>2015-12-09 19:10:26 -0500
commit71b9a42f00d8871bb09944ec80979c61ad84e655 (patch)
tree4ede6eaaea591a0b1c797498a6a8daaaa6cac489 /client/config
parent3b2eb0ffa12a0b3cc2eaa0a1e26ed6532e3f5d93 (diff)
downloadwekan-71b9a42f00d8871bb09944ec80979c61ad84e655.tar.gz
wekan-71b9a42f00d8871bb09944ec80979c61ad84e655.tar.bz2
wekan-71b9a42f00d8871bb09944ec80979c61ad84e655.zip
Allow the header bar customization
This commit also provide a way to escape the Shorcuts page on Sandstorm.
Diffstat (limited to 'client/config')
-rw-r--r--client/config/router.js22
1 files changed, 17 insertions, 5 deletions
diff --git a/client/config/router.js b/client/config/router.js
index 0a6958d0..ddd69db4 100644
--- a/client/config/router.js
+++ b/client/config/router.js
@@ -13,7 +13,10 @@ FlowRouter.route('/', {
Filter.reset();
EscapeActions.executeAll();
- BlazeLayout.render('defaultLayout', { content: 'boardList' });
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'boardListHeaderBar',
+ content: 'boardList',
+ });
},
});
@@ -33,7 +36,10 @@ FlowRouter.route('/b/:id/:slug', {
EscapeActions.executeUpTo('popup-close');
}
- BlazeLayout.render('defaultLayout', { content: 'board' });
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'boardHeaderBar',
+ content: 'board',
+ });
},
});
@@ -45,7 +51,10 @@ FlowRouter.route('/b/:boardId/:slug/:cardId', {
Session.set('currentBoard', params.boardId);
Session.set('currentCard', params.cardId);
- BlazeLayout.render('defaultLayout', { content: 'board' });
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'boardHeaderBar',
+ content: 'board',
+ });
},
});
@@ -58,11 +67,14 @@ FlowRouter.route('/shortcuts', {
if (previousPath) {
Modal.open(shortcutsTemplate, {
+ header: 'shortcutsModalTitle',
onCloseGoTo: previousPath,
});
} else {
- // XXX There is currently no way to escape this page on Sandstorm
- BlazeLayout.render('defaultLayout', { content: shortcutsTemplate });
+ BlazeLayout.render('defaultLayout', {
+ headerBar: 'shortcutsHeaderBar',
+ content: shortcutsTemplate,
+ });
}
},
});