summaryrefslogtreecommitdiffhomepage
path: root/applications
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2021-06-17 15:06:12 +0200
committerFlorian Eckert <fe@dev.tdt.de>2021-06-17 15:06:12 +0200
commita7be13ff05cc35352a02ad7c36acd704a037e37f (patch)
tree14df57dd93df0f0ca7af88e8867bb30de7e222b6 /applications
parent04c4499be74152c476ca1edfd6b8048252a55251 (diff)
luci-app-nlbwmon: showe force reload button even if data are available
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'applications')
-rw-r--r--applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js45
1 files changed, 24 insertions, 21 deletions
diff --git a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js
index 4909485bbe..a13c86b29b 100644
--- a/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js
+++ b/applications/luci-app-nlbwmon/htdocs/luci-static/resources/view/nlbw/display.js
@@ -359,13 +359,7 @@ return view.extend({
conn_total += rec.conns;
}
- cbi_update_table('#host-data', rows, E('em', [
- _('No data recorded yet.'), ' ',
- E('button', {
- 'class': 'cbi-button',
- 'click': ui.createHandlerFn(this, 'handleCommit')
- }, _('Force reload…'))
- ]));
+ cbi_update_table('#host-data', rows, E('em', _('No data recorded yet.')));
this.pie('traf-pie', trafData);
this.pie('conn-pie', connData);
@@ -419,13 +413,7 @@ return view.extend({
}
}
- cbi_update_table('#layer7-data', rows, E('em', [
- _('No data recorded yet.'), ' ',
- E('button', {
- 'class': 'cbi-button',
- 'click': ui.createHandlerFn(this, 'handleCommit')
- }, _('Force reload…'))
- ]));
+ cbi_update_table('#layer7-data', rows, E('em', _('No data recorded yet.')));
this.pie('layer7-rx-pie', rxData);
this.pie('layer7-tx-pie', txData);
@@ -526,13 +514,7 @@ return view.extend({
]);
}
- cbi_update_table('#ipv6-data', rows, E('em', [
- _('No data recorded yet.'), ' ',
- E('button', {
- 'class': 'cbi-button',
- 'click': ui.createHandlerFn(this, 'handleCommit')
- }, _('Force reload…'))
- ]));
+ cbi_update_table('#ipv6-data', rows, E('em', _('No data recorded yet.')));
var shareData = [], hostsData = [];
@@ -862,6 +844,13 @@ return view.extend({
E('em', { 'class': 'spinning' }, [ _('Collecting data...') ])
])
])
+ ]),
+ E('div', { 'class': 'right' }, [
+ E('button', {
+ 'class': 'cbi-button',
+ 'click': ui.createHandlerFn(this, 'handleCommit')
+ }, _('Force reload…')
+ )
])
]),
@@ -901,6 +890,13 @@ return view.extend({
E('em', { 'class': 'spinning' }, [ _('Collecting data...') ])
])
])
+ ]),
+ E('div', { 'class': 'right' }, [
+ E('button', {
+ 'class': 'cbi-button',
+ 'click': ui.createHandlerFn(this, 'handleCommit')
+ }, _('Force reload…')
+ )
])
]),
@@ -941,6 +937,13 @@ return view.extend({
E('em', { 'class': 'spinning' }, [ _('Collecting data...') ])
])
])
+ ]),
+ E('div', { 'class': 'right' }, [
+ E('button', {
+ 'class': 'cbi-button',
+ 'click': ui.createHandlerFn(this, 'handleCommit')
+ }, _('Force reload…')
+ )
])
]),