fix redirect after login

This commit is contained in:
zadam 2019-05-22 21:25:13 +02:00
parent 79956b5676
commit dedc1e708f
3 changed files with 6 additions and 5 deletions

View File

@ -47,6 +47,7 @@ async function showTree() {
minExpandLevel: 2, // root can't be collapsed
click: (event, data) => {
if (data.targetType !== 'expander' && data.node.isActive()) {
// this is important for single column mobile view, otherwise it's not possible to see again previously displayed note
$tree.fancytree('getTree').reactivate(true);
return false;

View File

@ -337,10 +337,10 @@ function fireDetailLoaded() {
}
messagingService.subscribeToSyncMessages(syncData => {
if (syncData.some(sync => sync.entityName === 'notes')) {
infoService.showMessage('Reloading note because of background changes');
refreshTabs(null, sync.entityId);
for (const sync of syncData) {
if (sync.entityName === 'notes') {
refreshTabs(null, sync.entityId);
}
}
});

View File

@ -24,7 +24,7 @@ async function login(req, res) {
}
req.session.loggedIn = true;
res.redirect('..');
res.redirect('.');
});
}
else {