2016-04-09 22:35:09 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const views = require('../util/views.js');
|
|
|
|
|
|
|
|
class EmptyView {
|
|
|
|
constructor() {
|
2016-05-20 21:35:12 +02:00
|
|
|
this._template = () => {
|
2016-05-12 00:13:01 +02:00
|
|
|
return views.htmlToDom(
|
|
|
|
'<div class="wrapper"><div class="messages"></div></div>');
|
|
|
|
};
|
2016-04-09 22:35:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
render(ctx) {
|
|
|
|
const target = document.getElementById('content-holder');
|
2016-05-20 21:35:12 +02:00
|
|
|
const source = this._template();
|
2016-05-11 21:29:57 +02:00
|
|
|
views.listenToMessages(source);
|
2016-04-09 22:35:09 +02:00
|
|
|
views.showView(target, source);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = EmptyView;
|