refactored attributes out of note detail, fixes #213

This commit is contained in:
azivner
2018-11-08 20:01:25 +01:00
parent 3ba761fe28
commit 6416e3e9fb
4 changed files with 306 additions and 294 deletions

View File

@@ -1,6 +1,7 @@
import bundleService from "./bundle.js";
import server from "./server.js";
import noteDetailService from "./note_detail.js";
import attributeService from "./attributes.js";
const $component = $('#note-detail-render');
const $noteDetailRenderHelp = $('#note-detail-render-help');
@@ -8,7 +9,7 @@ const $noteDetailRenderContent = $('#note-detail-render-content');
const $renderButton = $('#render-button');
async function render() {
const attributes = await noteDetailService.getAttributes();
const attributes = await attributeService.getAttributes();
const renderNotes = attributes.filter(attr =>
attr.type === 'relation'
&& attr.name === 'renderNote'