Skip to content

Commit

Permalink
dashboard: use 'super' for clarity, also minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
swhite2 committed Mar 20, 2024
1 parent fb2a9b8 commit fd35aee
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/opnsense/www/js/widgets/Interfaces.js
Expand Up @@ -47,7 +47,7 @@ export default class Interfaces extends BaseTableWidget {
headerPosition: 'none'
}

this.setTableOptions(options);
super.setTableOptions(options);
return super.getMarkup();
}

Expand All @@ -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>
Expand Down

0 comments on commit fd35aee

Please sign in to comment.