Skip to content

Commit efeac14

Browse files
authored
fix(web): show load balancing note for a single machine (pingdotgg#10433)
1 parent 1abc717 commit efeac14

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎apps/web/src/components/settings/LoadBalancingSettings.tsx‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,16 @@ export function LoadBalancingSettings({
2727
const settingsHydrated = useClientSettingsHydrated();
2828
const updateSettings = useUpdateClientSettings();
2929

30+
if (environments.length < 2) {
31+
return (
32+
<SettingsSection {...searchableSetting("load-balancing")} variant="plain">
33+
<p className="px-3 text-sm text-muted-foreground sm:px-4">
34+
Connect another machine to automatically balance load across environments.
35+
</p>
36+
</SettingsSection>
37+
);
38+
}
39+
3040
return (
3141
<SettingsSection {...searchableSetting("load-balancing")}>
3242
<SettingsRow

0 commit comments

Comments
 (0)