summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-vnstat2
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-08-11 19:05:38 +0200
committerGitHub <noreply@github.com>2021-08-11 19:05:38 +0200
commit4c4f2af6d82eb8df70a54fec8c598316f70521f8 (patch)
tree84207b0e3677c70dddb46cbbe5ed1808f8867a94 /applications/luci-app-vnstat2
parent755d12c79cc43196750267c1e990816bb40baea0 (diff)
parent57f325a757a9d037eb08852cc134ebdc111d321c (diff)
Merge pull request #5251 from selanf/x06
Diffstat (limited to 'applications/luci-app-vnstat2')
-rw-r--r--applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js b/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js
index fbe9d59337..7ac3b3f7e7 100644
--- a/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js
+++ b/applications/luci-app-vnstat2/htdocs/luci-static/resources/view/vnstat2/graphs.js
@@ -16,11 +16,11 @@ return view.extend({
]);
ifaces.forEach(function(iface) {
- tab.appendChild(E('p', {}, E('img', { 'data-iface': iface, 'style': 'display:none' })));
+ tab.appendChild(E('span', {}, E('img', { 'data-iface': iface, 'style': 'visibility:hidden; margin:5px 10px' })));
fs.exec_direct('/usr/bin/vnstati', [ '-'+style, '-i', iface, '-o', '-' ], 'blob').then(function(res) {
var img = tab.querySelector('img[data-iface="%s"]'.format(iface));
img.src = URL.createObjectURL(res);
- img.style.display = '';
+ img.style.visibility = 'visible';
tab.firstElementChild.style.display = 'none';
});
});