luci-app-nlbwmon: show force reload button even if data are available
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
(cherry picked from commit a7be13ff05
)
This commit is contained in:
parent
dbb2cb9523
commit
b1567baf0c
1 changed files with 24 additions and 21 deletions
|
@ -359,13 +359,7 @@ return view.extend({
|
||||||
conn_total += rec.conns;
|
conn_total += rec.conns;
|
||||||
}
|
}
|
||||||
|
|
||||||
cbi_update_table('#host-data', rows, E('em', [
|
cbi_update_table('#host-data', rows, E('em', _('No data recorded yet.')));
|
||||||
_('No data recorded yet.'), ' ',
|
|
||||||
E('button', {
|
|
||||||
'class': 'cbi-button',
|
|
||||||
'click': ui.createHandlerFn(this, 'handleCommit')
|
|
||||||
}, _('Force reload…'))
|
|
||||||
]));
|
|
||||||
|
|
||||||
this.pie('traf-pie', trafData);
|
this.pie('traf-pie', trafData);
|
||||||
this.pie('conn-pie', connData);
|
this.pie('conn-pie', connData);
|
||||||
|
@ -419,13 +413,7 @@ return view.extend({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
cbi_update_table('#layer7-data', rows, E('em', [
|
cbi_update_table('#layer7-data', rows, E('em', _('No data recorded yet.')));
|
||||||
_('No data recorded yet.'), ' ',
|
|
||||||
E('button', {
|
|
||||||
'class': 'cbi-button',
|
|
||||||
'click': ui.createHandlerFn(this, 'handleCommit')
|
|
||||||
}, _('Force reload…'))
|
|
||||||
]));
|
|
||||||
|
|
||||||
this.pie('layer7-rx-pie', rxData);
|
this.pie('layer7-rx-pie', rxData);
|
||||||
this.pie('layer7-tx-pie', txData);
|
this.pie('layer7-tx-pie', txData);
|
||||||
|
@ -526,13 +514,7 @@ return view.extend({
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
cbi_update_table('#ipv6-data', rows, E('em', [
|
cbi_update_table('#ipv6-data', rows, E('em', _('No data recorded yet.')));
|
||||||
_('No data recorded yet.'), ' ',
|
|
||||||
E('button', {
|
|
||||||
'class': 'cbi-button',
|
|
||||||
'click': ui.createHandlerFn(this, 'handleCommit')
|
|
||||||
}, _('Force reload…'))
|
|
||||||
]));
|
|
||||||
|
|
||||||
var shareData = [], hostsData = [];
|
var shareData = [], hostsData = [];
|
||||||
|
|
||||||
|
@ -862,6 +844,13 @@ return view.extend({
|
||||||
E('em', { 'class': 'spinning' }, [ _('Collecting data...') ])
|
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('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('em', { 'class': 'spinning' }, [ _('Collecting data...') ])
|
||||||
])
|
])
|
||||||
])
|
])
|
||||||
|
]),
|
||||||
|
E('div', { 'class': 'right' }, [
|
||||||
|
E('button', {
|
||||||
|
'class': 'cbi-button',
|
||||||
|
'click': ui.createHandlerFn(this, 'handleCommit')
|
||||||
|
}, _('Force reload…')
|
||||||
|
)
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue