blob: 37ce1c288f112f37a840806161fbad6c9fff33e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
"use strict";
const views = require("../util/views.js");
const template = views.getTemplate("pool-summary");
class PoolSummaryView {
constructor(ctx) {
this._pool = ctx.pool;
this._hostNode = ctx.hostNode;
views.replaceContent(this._hostNode, template(ctx));
}
showSuccess(message) {
views.showSuccess(this._hostNode, message);
}
showError(message) {
views.showError(this._hostNode, message);
}
}
module.exports = PoolSummaryView;
|