Fix agent budget tab routing
This commit is contained in:
@@ -366,7 +366,9 @@ export function AgentDetail() {
|
|||||||
? "configuration"
|
? "configuration"
|
||||||
: activeView === "runs"
|
: activeView === "runs"
|
||||||
? "runs"
|
? "runs"
|
||||||
: "dashboard";
|
: activeView === "budget"
|
||||||
|
? "budget"
|
||||||
|
: "dashboard";
|
||||||
if (routeAgentRef !== canonicalAgentRef || urlTab !== canonicalTab) {
|
if (routeAgentRef !== canonicalAgentRef || urlTab !== canonicalTab) {
|
||||||
navigate(`/agents/${canonicalAgentRef}/${canonicalTab}`, { replace: true });
|
navigate(`/agents/${canonicalAgentRef}/${canonicalTab}`, { replace: true });
|
||||||
return;
|
return;
|
||||||
@@ -483,6 +485,8 @@ export function AgentDetail() {
|
|||||||
crumbs.push({ label: "Configuration" });
|
crumbs.push({ label: "Configuration" });
|
||||||
} else if (activeView === "runs") {
|
} else if (activeView === "runs") {
|
||||||
crumbs.push({ label: "Runs" });
|
crumbs.push({ label: "Runs" });
|
||||||
|
} else if (activeView === "budget") {
|
||||||
|
crumbs.push({ label: "Budget" });
|
||||||
} else {
|
} else {
|
||||||
crumbs.push({ label: "Dashboard" });
|
crumbs.push({ label: "Dashboard" });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user