mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-29 07:49:14 +01:00
Template alignment
This commit is contained in:
@@ -96,6 +96,10 @@
|
|||||||
disableProfiles : hide the profile menu, reject profile CRUD.
|
disableProfiles : hide the profile menu, reject profile CRUD.
|
||||||
disableNetworks : hide the Networks / Exit Node menus,
|
disableNetworks : hide the Networks / Exit Node menus,
|
||||||
reject the related RPCs.
|
reject the related RPCs.
|
||||||
|
disableAdvancedView : hide the advanced-view section of the new
|
||||||
|
UI. Tristate at the daemon: set to true to
|
||||||
|
hide, false to explicitly show, omit the
|
||||||
|
key to let the UI apply its own default.
|
||||||
disableMetricsCollection: opt out of anonymous usage telemetry. -->
|
disableMetricsCollection: opt out of anonymous usage telemetry. -->
|
||||||
<!--
|
<!--
|
||||||
<key>disableUpdateSettings</key>
|
<key>disableUpdateSettings</key>
|
||||||
@@ -107,6 +111,9 @@
|
|||||||
<key>disableNetworks</key>
|
<key>disableNetworks</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
|
||||||
|
<key>disableAdvancedView</key>
|
||||||
|
<true/>
|
||||||
|
|
||||||
<key>disableMetricsCollection</key>
|
<key>disableMetricsCollection</key>
|
||||||
<false/>
|
<false/>
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -144,6 +144,8 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>disableNetworks</key>
|
<key>disableNetworks</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>disableAdvancedView</key>
|
||||||
|
<true/>
|
||||||
<key>disableMetricsCollection</key>
|
<key>disableMetricsCollection</key>
|
||||||
<false/>
|
<false/>
|
||||||
-->
|
-->
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ disableMetricsCollection="$NULL"
|
|||||||
disableUpdateSettings="$NULL"
|
disableUpdateSettings="$NULL"
|
||||||
disableProfiles="$NULL"
|
disableProfiles="$NULL"
|
||||||
disableNetworks="$NULL"
|
disableNetworks="$NULL"
|
||||||
|
disableAdvancedView="$NULL" # tristate at the daemon
|
||||||
rosenpassEnabled="$NULL"
|
rosenpassEnabled="$NULL"
|
||||||
rosenpassPermissive="$NULL"
|
rosenpassPermissive="$NULL"
|
||||||
wireguardPort='51820'
|
wireguardPort='51820'
|
||||||
@@ -160,6 +161,7 @@ main() {
|
|||||||
is_set "$disableUpdateSettings" && emit_bool disableUpdateSettings "$disableUpdateSettings"
|
is_set "$disableUpdateSettings" && emit_bool disableUpdateSettings "$disableUpdateSettings"
|
||||||
is_set "$disableProfiles" && emit_bool disableProfiles "$disableProfiles"
|
is_set "$disableProfiles" && emit_bool disableProfiles "$disableProfiles"
|
||||||
is_set "$disableNetworks" && emit_bool disableNetworks "$disableNetworks"
|
is_set "$disableNetworks" && emit_bool disableNetworks "$disableNetworks"
|
||||||
|
is_set "$disableAdvancedView" && emit_bool disableAdvancedView "$disableAdvancedView"
|
||||||
is_set "$rosenpassEnabled" && emit_bool rosenpassEnabled "$rosenpassEnabled"
|
is_set "$rosenpassEnabled" && emit_bool rosenpassEnabled "$rosenpassEnabled"
|
||||||
is_set "$rosenpassPermissive" && emit_bool rosenpassPermissive "$rosenpassPermissive"
|
is_set "$rosenpassPermissive" && emit_bool rosenpassPermissive "$rosenpassPermissive"
|
||||||
is_set "$wireguardPort" && emit_int wireguardPort "$wireguardPort"
|
is_set "$wireguardPort" && emit_int wireguardPort "$wireguardPort"
|
||||||
|
|||||||
Binary file not shown.
@@ -60,6 +60,9 @@
|
|||||||
<string id="DisableNetworks_Name">Disable networks</string>
|
<string id="DisableNetworks_Name">Disable networks</string>
|
||||||
<string id="DisableNetworks_Help">When enabled, the client UI/CLI cannot list, select or deselect NetBird networks (the corresponding daemon RPCs return Unavailable). Equivalent to --disable-networks.</string>
|
<string id="DisableNetworks_Help">When enabled, the client UI/CLI cannot list, select or deselect NetBird networks (the corresponding daemon RPCs return Unavailable). Equivalent to --disable-networks.</string>
|
||||||
|
|
||||||
|
<string id="DisableAdvancedView_Name">Disable advanced view</string>
|
||||||
|
<string id="DisableAdvancedView_Help">When enabled, the client UI hides the advanced-view section of the new UI revision. Tristate at the daemon: 1 (enabled) hides the section; 0 (disabled) explicitly shows it; not configured leaves the UI's default behavior in place. MDM is the sole source — no equivalent CLI flag exists.</string>
|
||||||
|
|
||||||
<string id="DisableMetricsCollection_Name">Disable metrics collection</string>
|
<string id="DisableMetricsCollection_Name">Disable metrics collection</string>
|
||||||
<string id="DisableMetricsCollection_Help">When enabled, the client does not collect or report local usage metrics.</string>
|
<string id="DisableMetricsCollection_Help">When enabled, the client does not collect or report local usage metrics.</string>
|
||||||
|
|
||||||
|
|||||||
@@ -207,6 +207,18 @@
|
|||||||
<disabledValue><decimal value="0" /></disabledValue>
|
<disabledValue><decimal value="0" /></disabledValue>
|
||||||
</policy>
|
</policy>
|
||||||
|
|
||||||
|
<policy name="DisableAdvancedView"
|
||||||
|
class="Machine"
|
||||||
|
displayName="$(string.DisableAdvancedView_Name)"
|
||||||
|
explainText="$(string.DisableAdvancedView_Help)"
|
||||||
|
key="Software\Policies\NetBird"
|
||||||
|
valueName="DisableAdvancedView">
|
||||||
|
<parentCategory ref="NetBird" />
|
||||||
|
<supportedOn ref="SUPPORTED_NetBird_All" />
|
||||||
|
<enabledValue><decimal value="1" /></enabledValue>
|
||||||
|
<disabledValue><decimal value="0" /></disabledValue>
|
||||||
|
</policy>
|
||||||
|
|
||||||
<policy name="DisableMetricsCollection"
|
<policy name="DisableMetricsCollection"
|
||||||
class="Machine"
|
class="Machine"
|
||||||
displayName="$(string.DisableMetricsCollection_Name)"
|
displayName="$(string.DisableMetricsCollection_Name)"
|
||||||
|
|||||||
Reference in New Issue
Block a user