fixed nested text on filtered textmode

This commit is contained in:
2018-10-09 14:49:48 +02:00
parent 03d62514c7
commit 57e47fcf33
3 changed files with 5 additions and 5 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -225,7 +225,7 @@ var _Item = {
'class' :`item${this.nested ? ' nested':''} ${this.dottype}` 'class' :`item${this.nested ? ' nested':''} ${this.dottype}`
}, },
// filter by type if active filter // filter by type if active filter
!_dbs.active_type_filter || _dbs.active_type_filter == vn.attrs.dottype !_dbs.active_type_filter || _dbs.active_type_filter == vn.attrs.dottype || vn.attrs.nested
? [ ? [
// create title node (only if not nested) // create title node (only if not nested)
!this.nested !this.nested
@@ -295,7 +295,7 @@ var _Enonce = {
// create title node (only if not nested) // create title node (only if not nested)
? !vn.attrs.nested ? m("h2", {}, m.trust(markdown.renderInline(this.title))) : null ? !vn.attrs.nested ? m("h2", {}, m.trust(markdown.renderInline(this.title))) : null
: null, : null,
!_dbs.active_type_filter || _dbs.active_type_filter == vn.attrs.dottype !_dbs.active_type_filter || _dbs.active_type_filter == vn.attrs.dottype || vn.attrs.nested
// create text node // create text node
? m(_Text, {'text':vn.attrs.text, 'id':vn.attrs.id, 'nested':vn.attrs.nested}) ? m(_Text, {'text':vn.attrs.text, 'id':vn.attrs.id, 'nested':vn.attrs.nested})
: null, : null,