szurubooru/client/js/views/empty_view.js

22 lines
500 B
JavaScript
Raw Normal View History

'use strict';
const views = require('../util/views.js');
class EmptyView {
constructor() {
this.template = () => {
return views.htmlToDom(
'<div class="wrapper"><div class="messages"></div></div>');
};
}
render(ctx) {
const target = document.getElementById('content-holder');
const source = this.template();
views.listenToMessages(source);
views.showView(target, source);
}
}
module.exports = EmptyView;