mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
ETAPI delete/patch, refactoring
This commit is contained in:
@@ -5,8 +5,6 @@ const TPL = `
|
||||
<div class="note-list-widget">
|
||||
<style>
|
||||
.note-list-widget {
|
||||
flex-grow: 100000;
|
||||
flex-shrink: 100000;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
@@ -22,11 +20,7 @@ const TPL = `
|
||||
|
||||
export default class NoteListWidget extends NoteContextAwareWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled()
|
||||
&& ['book', 'text', 'code'].includes(this.note.type)
|
||||
&& this.note.mime !== 'text/x-sqlite;schema=trilium'
|
||||
&& this.note.hasChildren()
|
||||
&& !this.note.hasLabel('hideChildrenOverview');
|
||||
return super.isEnabled() && this.noteContext.hasNoteList();
|
||||
}
|
||||
|
||||
doRender() {
|
||||
|
||||
Reference in New Issue
Block a user