mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix autobook switching back to text
This commit is contained in:
parent
6de0f75931
commit
6a1bfdeab9
@ -240,8 +240,10 @@ export default class NoteDetailWidget extends TabAwareWidget {
|
||||
this.spacedUpdate.updateNowIfNecessary();
|
||||
}
|
||||
|
||||
autoBookDisabledEvent() {
|
||||
this.refresh();
|
||||
autoBookDisabledEvent({tabContext}) {
|
||||
if (this.isTab(tabContext.tabId)) {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
|
||||
async cutIntoNoteCommand() {
|
||||
|
@ -136,7 +136,7 @@ export default class BookTypeWidget extends TypeWidget {
|
||||
const $addTextLink = $('<a href="javascript:">here</a>').on('click', () => {
|
||||
this.tabContext.autoBookDisabled = true;
|
||||
|
||||
this.triggerEvent('autoBookDisabled');
|
||||
this.triggerEvent('autoBookDisabled', {tabContext: this.tabContext});
|
||||
});
|
||||
|
||||
this.$content.append($('<div class="note-book-auto-message"></div>')
|
||||
|
@ -36,4 +36,10 @@ export default class TypeWidget extends TabAwareWidget {
|
||||
scrollToTop() {
|
||||
this.$widget.scrollTop(0);
|
||||
}
|
||||
|
||||
autoBookDisabledEvent({tabContext}) {
|
||||
if (this.isTab(tabContext.tabId)) {
|
||||
this.refresh();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user