mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-16 11:18:32 -06:00
add keyboard action to force creating note revisions, #2147
This commit is contained in:
@@ -201,4 +201,12 @@ export default class Entrypoints extends Component {
|
||||
activeContextChangedEvent() {
|
||||
this.hideAllTooltips();
|
||||
}
|
||||
|
||||
async forceSaveNoteRevisionCommand() {
|
||||
const noteId = appContext.tabManager.getActiveContextNoteId();
|
||||
|
||||
await server.post(`notes/${noteId}/revision`);
|
||||
|
||||
toastService.showMessage("Note revision has been created.");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user