Merge pull request #5251 from selanf/x06
This commit is contained in:
commit
4c4f2af6d8
1 changed files with 2 additions and 2 deletions
|
@ -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';
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue