Initial work on due cards page

This commit is contained in:
John R. Supplee 2021-01-07 22:36:10 +02:00
parent 108d01ee35
commit 1abdd5177d
7 changed files with 483 additions and 1 deletions

View file

@ -139,6 +139,32 @@ FlowRouter.route('/my-cards', {
},
});
FlowRouter.route('/due-cards', {
name: 'my-cards',
action() {
const dueCardsTemplate = 'dueCards';
Filter.reset();
// EscapeActions.executeAll();
EscapeActions.executeUpTo('popup-close');
Utils.manageCustomUI();
Utils.manageMatomo();
// if (previousPath) {
// Modal.open(dueCardsTemplate, {
// header: 'dueCardsModalTitle',
// onCloseGoTo: previousPath,
// });
// } else {
BlazeLayout.render('defaultLayout', {
headerBar: 'dueCardsHeaderBar',
content: dueCardsTemplate,
});
// }
},
});
FlowRouter.route('/import/:source', {
name: 'import',
triggersEnter: [AccountsTemplates.ensureSignedIn],