mirror of
https://gitlab.com/bmcgonag/get_my.git
synced 2026-03-27 00:08:49 +00:00
Updates to make Menu and lists work together again.
This commit is contained in:
parent
b5d490c052
commit
9223f21e06
7 changed files with 32 additions and 27 deletions
|
|
@ -31,14 +31,12 @@ Template.mainMenuTbl.events({
|
|||
} else {
|
||||
// console.log("menuId is: " + menuId);
|
||||
const addUserLast = async() => {
|
||||
Session.set("menuId", menuId);
|
||||
let result = await Meteor.callAsync('add.userLast', "Menu", menuId);
|
||||
if (!result) {
|
||||
// console.log(" ERROR writing last menu viewed by user to db.");
|
||||
} else {
|
||||
Session.set("menuId", menuId);
|
||||
Meteor.setTimeout(function() {
|
||||
FlowRouter.go('/menuitems');
|
||||
}, 100);
|
||||
FlowRouter.go('/menuitems');
|
||||
}
|
||||
}
|
||||
addUserLast();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue