mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
refactoring/cleanup
This commit is contained in:
@@ -192,13 +192,17 @@ class TabContext {
|
||||
return this.components[type];
|
||||
}
|
||||
|
||||
async activate() {
|
||||
await this.tabRow.activateTab(this.$tab[0]);
|
||||
}
|
||||
|
||||
async saveNote() {
|
||||
if (this.note.isProtected && !protectedSessionHolder.isProtectedSessionAvailable()) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.note.title = this.$noteTitle.val();
|
||||
this.note.content = noteDetailService.getActiveNoteContent();
|
||||
this.note.content = this.getComponent().getContent();
|
||||
|
||||
// it's important to set the flag back to false immediatelly after retrieving title and content
|
||||
// otherwise we might overwrite another change (especially async code)
|
||||
|
||||
Reference in New Issue
Block a user