dashboard: Show "Active" beside the active gateway in the Gateways Widget on the Dashboard (#8208)

This commit is contained in:
ja-softdevel 2025-01-13 08:10:57 -06:00 committed by GitHub
parent d3466788f0
commit 97327f29ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -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>
&nbsp;
${defaultgw ? `(${this.translations.active})` : ''}
<br/>
<div style="margin-top: 5px; margin-bottom: 5px; font-size: 15px;">${address}</div>
</div>`;

View File

@ -186,6 +186,7 @@
<rtt>RTT</rtt>
<rttd>RTTd</rttd>
<loss>Loss</loss>
<active>active</active>
</translations>
</gateways>
<thermalsensors>