dashboard: use 'super' for clarity, also minor cleanup

This commit is contained in:
Stephan de Wit 2024-03-20 16:11:55 +01:00
parent fb2a9b8391
commit fd35aee95d

View File

@ -47,7 +47,7 @@ export default class Interfaces extends BaseTableWidget {
headerPosition: 'none'
}
this.setTableOptions(options);
super.setTableOptions(options);
return super.getMarkup();
}
@ -65,19 +65,6 @@ export default class Interfaces extends BaseTableWidget {
let row = [];
let symbol = '';
switch (intf_data.link_type) {
case 'ppp':
symbol = 'fa fa-mobile';
break;
case 'wireless':
symbol = 'fa fa-signal';
break;
default:
symbol = 'fa fa-exchange';
break;
}
row.push($(`
<div class="interface-info if-name">
<i class="fa fa-plug text-${intf_data.status === 'up' ? 'success' : 'danger'}" title="" data-toggle="tooltip" data-original-title="${intf_data.status}"></i>