store images in notes, basic structure

This commit is contained in:
azivner
2018-11-08 10:11:00 +01:00
parent 5f427e37fe
commit d0d2a7fe47
24 changed files with 11589 additions and 141 deletions

View File

@@ -238,7 +238,10 @@ async function loadNoteDetail(noteId) {
async function showChildrenOverview() {
const note = getCurrentNote();
const attributes = await attributePromise;
const hideChildrenOverview = attributes.some(attr => attr.type === 'label' && attr.name === 'hideChildrenOverview') || note.type === 'relation-map';
const hideChildrenOverview = attributes.some(attr => attr.type === 'label' && attr.name === 'hideChildrenOverview')
|| note.type === 'relation-map'
|| note.type === 'image'
|| note.type === 'file';
if (hideChildrenOverview) {
$childrenOverview.hide();