Netbird fixes (#4827)

* Changed routes to networks as Netbird changed the name

* Also changed the field name from routes to networks
This commit is contained in:
Gauss23
2025-07-20 07:57:08 +02:00
committed by GitHub
parent fd49d06c60
commit 259fb1ebb8
2 changed files with 3 additions and 3 deletions
@@ -136,7 +136,7 @@ class ServiceController extends ApiMutableServiceControllerBase
foreach ($array as $key => $value) {
if (is_array($value)) {
foreach ($value as $subkey => $subvalue) {
if ($key == "routes") {
if ($key == "networks") {
$result[$key] = implode("<br />", $value);
} else {
$result[$key . "." . $subkey] = $subvalue;
@@ -114,8 +114,8 @@
<tr>
<th data-column-id="fqdn" data-type="string" data-identifier="false"
data-visible="true">{{ lang._('FQDN') }}</th>
<th data-column-id="routes" data-type="string" data-identifier="false"
data-visible="true">{{ lang._('Routes') }}</th>
<th data-column-id="networks" data-type="string" data-identifier="false"
data-visible="true">{{ lang._('Networks') }}</th>
<th data-width="8%" data-column-id="netbirdIp" data-type="string" data-identifier="false"
data-visible="true">{{ lang._('IP') }}</th>
<th data-width="5%" data-column-id="direct" data-type="string" data-identifier="false"