fix(web): show load balancing note for a single machine (#10433)
This commit is contained in:
1 parent
1abc717f0d
commit
efeac14428
1 file changed
+10
@@ -27,6 +27,16 @@ export function LoadBalancingSettings({
|
||||
const settingsHydrated = useClientSettingsHydrated();
|
||||
const updateSettings = useUpdateClientSettings();
|
||||
|
||||
if (environments.length < 2) {
|
||||
return (
|
||||
<SettingsSection {...searchableSetting("load-balancing")} variant="plain">
|
||||
<p className="px-3 text-sm text-muted-foreground sm:px-4">
|
||||
Connect another machine to automatically balance load across environments.
|
||||
</p>
|
||||
</SettingsSection>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<SettingsSection {...searchableSetting("load-balancing")}>
|
||||
<SettingsRow
|
||||
|
||||
Reference in new issue
Block a user