mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
fix redirect after login
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ async function login(req, res) {
|
||||
}
|
||||
|
||||
req.session.loggedIn = true;
|
||||
res.redirect('..');
|
||||
res.redirect('.');
|
||||
});
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user