luci/applications/luci-app-mwan3/htdocs/luci-static/resources/view/mwan3/status/troubleshooting.js
Florian Eckert f5f6b3e4f8 luci-app-mwan3: convert to JS
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
2021-07-09 08:38:11 +02:00

22 lines
468 B
JavaScript

'use strict';
'require fs';
'require view';
return view.extend({
load: function() {
return L.resolveDefault(fs.exec_direct('/usr/sbin/mwan3', [ 'internal', 'ipv4' ]),'');
},
render: function (report) {
return E('div', { 'class': 'cbi-map', 'id': 'map' }, [
E('h2', _('MultiWAN Manager - Troubleshooting')),
E('div', { 'class': 'cbi-section' }, [
E('pre', [ report ])
]),
])
},
handleSaveApply: null,
handleSave: null,
handleReset: null
})