This repository has been archived on 2025-02-26. You can view files and clone it, but cannot push or open issues or pull requests.
szurubooru/client/js/controls/post_edit_sidebar_control.js

23 lines
563 B
JavaScript

'use strict';
const views = require('../util/views.js');
class PostEditSidebarControl {
constructor(hostNode, post, postContentControl) {
this._hostNode = hostNode;
this._post = post;
this._postContentControl = postContentControl;
this._template = views.getTemplate('post-edit-sidebar');
this.install();
}
install() {
const sourceNode = this._template({
post: this._post,
});
views.showView(this._hostNode, sourceNode);
}
};
module.exports = PostEditSidebarControl;