Improve failover controls and preserve manual switching state
Build and Deploy Gateway / build-and-push (push) Failing after 1s
Build and Deploy Gateway / deploy (push) Has been skipped

This commit is contained in:
2026-08-28 19:40:53 +03:00
parent 8f2f418569
commit a84cca0668
30 changed files with 547 additions and 112 deletions
+8 -1
View File
@@ -710,6 +710,7 @@ export function ClientOverviewPage({
activeSwitch?.finish();
if (current === target) {
if (target === 'failover') failoverFeature.pendingTargetRef.current = null;
drawerControls[target].close();
return;
}
@@ -717,7 +718,13 @@ export function ClientOverviewPage({
routingFeature.requestClose();
return;
}
if (current === 'failover' && !failoverFeature.beforeCloseRef.current()) return;
if (current === 'failover') {
if (!failoverFeature.beforeCloseRef.current()) {
failoverFeature.pendingTargetRef.current = () => switchDrawer(target);
return;
}
failoverFeature.pendingTargetRef.current = null;
}
if (!current) {
drawerControls[target].show();
return;