mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
refactored attributes out of note detail, fixes #213
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user