Fix profile server selection activation state
Build and Deploy Gateway / build-and-push (push) Successful in 20s
Build and Deploy Gateway / deploy (push) Successful in 7s

This commit is contained in:
2026-08-11 10:11:13 +03:00
parent 17849ffd73
commit 7e4da4bdcf
11 changed files with 60 additions and 62 deletions
+3 -6
View File
@@ -105,7 +105,6 @@ interface ClientOverviewPageProps {
error: UiError | null;
onAddProfile: (label: string, url: string) => Promise<unknown>;
onSelectProfileServer: (profileId: string, serverId: string) => Promise<unknown>;
onActivateProfile: (profileId: string) => Promise<unknown>;
onRefreshProfile: (profileId: string) => Promise<unknown>;
onForgetProfile: (profileId: string, mode: 'delete' | 'stop-and-delete') => Promise<unknown>;
onApply: (profileId: string, serverId: string) => Promise<unknown>;
@@ -411,7 +410,6 @@ export function ClientOverviewPage({
error,
onAddProfile,
onSelectProfileServer,
onActivateProfile,
onRefreshProfile,
onForgetProfile,
onApply,
@@ -494,7 +492,6 @@ export function ClientOverviewPage({
onAdd: onAddProfile,
onRefresh: onRefreshProfile,
onForget: onForgetProfile,
onActivate: onActivateProfile,
onDismissError,
});
const routingFeature = useRoutingFeature({
@@ -553,7 +550,7 @@ export function ClientOverviewPage({
}, []);
function selectServer(profile: ProfileSnapshot, serverId: string) {
if (connected && !gatewayDirect && state.selection.appliedProfileId === profile.id) {
if (connected && !gatewayDirect) {
onApply(profile.id, serverId);
return;
}
@@ -723,9 +720,9 @@ export function ClientOverviewPage({
profileId={profile.id}
pingServers={actions.pingServers}
servers={profile.servers}
selectedServerId={profile.desiredServerId}
selectedServerId={pickerState.selectedServerId}
disabled={serverApplyBlocked || pickerState.disabled}
prompt={!profile.desiredServerId}
prompt={!pickerState.selectedServerId}
leaving={pickerState.leaving}
revealVersion={pickerState.revealVersion}
anchorServerId={pickerState.anchorServerId}