add keyboard action to force creating note revisions, #2147

This commit is contained in:
zadam
2022-11-08 22:36:15 +01:00
parent bf4776a33c
commit 60fc621cd4
4 changed files with 33 additions and 1 deletions

View File

@@ -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.");
}
}