szurubooru/client/js/controls/post_edit_sidebar_control.js
rr- a697aba1b0 client/general: remove api calls from controls
Introduce some missing models along the way
2016-06-18 10:35:20 +02:00

21 lines
554 B
JavaScript

'use strict';
const events = require('../events.js');
const views = require('../util/views.js');
const template = views.getTemplate('post-edit-sidebar');
class PostEditSidebarControl extends events.EventTarget {
constructor(hostNode, post, postContentControl) {
super();
this._hostNode = hostNode;
this._post = post;
this._postContentControl = postContentControl;
views.replaceContent(this._hostNode, template({
post: this._post,
}));
}
};
module.exports = PostEditSidebarControl;