mirror of
https://github.com/wekan/wekan.git
synced 2026-03-04 04:40:16 +01:00
Allow the header bar customization
This commit also provide a way to escape the Shorcuts page on Sandstorm.
This commit is contained in:
parent
3b2eb0ffa1
commit
71b9a42f00
12 changed files with 98 additions and 50 deletions
|
|
@ -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,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue