Fix agent budget tab routing
This commit is contained in:
parent
728d9729ed
commit
1990b29018
1 changed files with 5 additions and 1 deletions
|
|
@ -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" });
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue