mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 02:54:38 +00:00
dashboard: use 'super' for clarity, also minor cleanup
This commit is contained in:
parent
fb2a9b8391
commit
fd35aee95d
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user