mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
dashboard: Show "Active" beside the active gateway in the Gateways Widget on the Dashboard (#8208)
This commit is contained in:
parent
d3466788f0
commit
97327f29ff
@ -95,7 +95,7 @@ export default class Gateways extends BaseTableWidget {
|
||||
const config = await this.getWidgetConfig();
|
||||
|
||||
let data = [];
|
||||
gateways.forEach(({ uuid, name, gateway: address, status, loss, delay, stddev }) => {
|
||||
gateways.forEach(({ uuid, name, gateway: address, status, loss, delay, stddev, defaultgw }) => {
|
||||
if (!config.gateways.includes(uuid)) {
|
||||
return;
|
||||
}
|
||||
@ -117,6 +117,7 @@ export default class Gateways extends BaseTableWidget {
|
||||
${name}
|
||||
</a>
|
||||
|
||||
${defaultgw ? `(${this.translations.active})` : ''}
|
||||
<br/>
|
||||
<div style="margin-top: 5px; margin-bottom: 5px; font-size: 15px;">${address}</div>
|
||||
</div>`;
|
||||
|
||||
@ -186,6 +186,7 @@
|
||||
<rtt>RTT</rtt>
|
||||
<rttd>RTTd</rttd>
|
||||
<loss>Loss</loss>
|
||||
<active>active</active>
|
||||
</translations>
|
||||
</gateways>
|
||||
<thermalsensors>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user