abstracted note detail components

This commit is contained in:
azivner
2018-03-27 21:46:38 -04:00
parent 000cf99546
commit 913b6bb6f6
7 changed files with 36 additions and 54 deletions

View File

@@ -0,0 +1,21 @@
import bundleService from "./bundle.js";
import server from "./server.js";
import noteDetailService from "./note_detail.js";
const $noteDetailRender = $('#note-detail-render');
async function show() {
$noteDetailRender.show();
const bundle = await server.get('script/bundle/' + noteDetailService.getCurrentNoteId());
$noteDetailRender.html(bundle.html);
await bundleService.executeBundle(bundle);
}
export default {
show,
getContent: () => null,
focus: () => null
}