mirror of
https://github.com/zadam/trilium.git
synced 2025-06-05 01:18:44 +02:00
improvements
This commit is contained in:
parent
56e01046c8
commit
cd60ad4267
@ -50,8 +50,8 @@
|
||||
"express-partial-content": "1.0.2",
|
||||
"express-rate-limit": "6.7.0",
|
||||
"express-session": "1.17.3",
|
||||
"fs-extra": "10.1.0",
|
||||
"helmet": "6.0.0",
|
||||
"fs-extra": "11.1.0",
|
||||
"helmet": "6.0.1",
|
||||
"html": "1.0.0",
|
||||
"html2plaintext": "2.1.4",
|
||||
"http-proxy-agent": "5.0.0",
|
||||
@ -65,7 +65,7 @@
|
||||
"jsdom": "20.0.3",
|
||||
"mime-types": "2.1.35",
|
||||
"multer": "1.4.5-lts.1",
|
||||
"node-abi": "3.28.0",
|
||||
"node-abi": "3.30.0",
|
||||
"normalize-strings": "1.1.1",
|
||||
"open": "8.4.0",
|
||||
"rand-token": "1.0.1",
|
||||
|
@ -7,6 +7,10 @@ export default class AbstractLauncher extends OnClickButtonWidget {
|
||||
|
||||
/** @type {NoteShort} */
|
||||
this.launcherNote = launcherNote;
|
||||
|
||||
for (const label of launcherNote.getOwnedLabels('keyboardShortcut')) {
|
||||
this.bindNoteShortcutHandler(label);
|
||||
}
|
||||
}
|
||||
|
||||
launch() {
|
||||
@ -30,4 +34,4 @@ export default class AbstractLauncher extends OnClickButtonWidget {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -61,9 +61,9 @@ export default class LauncherContainer extends FlexContainer {
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
if (loadResults.getNoteIds().find(noteId => froca.notes[noteId]?.isLaunchBarConfig())
|
||||
|| loadResults.getBranches().find(branch => branch.parentNoteId.startsWith("lb_"))
|
||||
|| loadResults.getAttributes().find(attr => froca.notes[attr.noteId]?.isLaunchBarConfig())) {
|
||||
if (loadResults.getBranches().find(branch => branch.parentNoteId.startsWith("lb_"))) {
|
||||
// changes in note placement requires reload of all launchers, all other changes are handled by individual
|
||||
// launchers
|
||||
this.load();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user