removed auto book as it is no longer needed

This commit is contained in:
zadam
2021-01-28 22:34:35 +01:00
parent 67e0e0888e
commit d19a929237
7 changed files with 4 additions and 47 deletions

View File

@@ -169,17 +169,6 @@ export default class NoteDetailWidget extends TabAwareWidget {
let type = note.type;
if (type === 'text' && !this.tabContext.autoBookDisabled
&& note.hasChildren()
&& utils.isDesktop()) {
const noteComplement = await this.tabContext.getNoteComplement();
if (utils.isHtmlEmpty(noteComplement.content)) {
type = 'book';
}
}
if (type === 'text' && !this.tabContext.textPreviewDisabled) {
const noteComplement = await this.tabContext.getNoteComplement();
@@ -308,12 +297,6 @@ export default class NoteDetailWidget extends TabAwareWidget {
this.spacedUpdate.updateNowIfNecessary();
}
autoBookDisabledEvent({tabContext}) {
if (this.isTab(tabContext.tabId)) {
this.refresh();
}
}
textPreviewDisabledEvent({tabContext}) {
if (this.isTab(tabContext.tabId)) {
this.refresh();