diff --git a/src/public/app/services/tab_context.js b/src/public/app/services/tab_context.js index 1bde9d523..b4aee5cc1 100644 --- a/src/public/app/services/tab_context.js +++ b/src/public/app/services/tab_context.js @@ -60,7 +60,6 @@ class TabContext extends Component { this.notePath = resolvedNotePath; this.noteId = noteId; - this.autoBookDisabled = false; this.textPreviewDisabled = false; this.codePreviewDisabled = false; diff --git a/src/public/app/widgets/note_detail.js b/src/public/app/widgets/note_detail.js index e490ba466..1b373274b 100644 --- a/src/public/app/widgets/note_detail.js +++ b/src/public/app/widgets/note_detail.js @@ -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(); diff --git a/src/public/app/widgets/note_list.js b/src/public/app/widgets/note_list.js index 2a050bade..f3ac4b4ba 100644 --- a/src/public/app/widgets/note_list.js +++ b/src/public/app/widgets/note_list.js @@ -27,7 +27,8 @@ export default class NoteListWidget extends TabAwareWidget { && ( ['book', 'search', 'code'].includes(this.note.type) || (this.note.type === 'text' && this.note.hasChildren()) - ); + ) + && !this.note.hasLabel('hideChildrenOverview'); } doRender() { @@ -92,12 +93,6 @@ export default class NoteListWidget extends TabAwareWidget { this.checkRenderStatus(); } - autoBookDisabledEvent({tabContext}) { - if (this.isTab(tabContext.tabId)) { - this.refresh(); - } - } - notesReloadedEvent({noteIds}) { if (noteIds.includes(this.noteId)) { this.refresh(); diff --git a/src/public/app/widgets/type_widgets/book.js b/src/public/app/widgets/type_widgets/book.js index dc39368c7..921cf5796 100644 --- a/src/public/app/widgets/type_widgets/book.js +++ b/src/public/app/widgets/type_widgets/book.js @@ -15,11 +15,6 @@ const TPL = `