My Cards development

first prototype
This commit is contained in:
John R. Supplee 2020-12-31 19:14:55 +02:00
parent 3ed9f07015
commit 077e78d37c
6 changed files with 329 additions and 0 deletions

View file

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