fix(dashboard): a release page of an unknown target says so (#1028)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 6m11s
CI / Check (pull_request) Successful in 22m46s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 6m11s
CI / Check (pull_request) Successful in 22m46s
Opening "SBOM freigeben" for a target the workspace does not have (found on stage with another workspace's link) said the releases could not be loaded, under a breadcrumb with an empty name. It now says what the target page says: this target does not exist (any more). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
This commit is contained in:
1 parent
ae5d8f1ca8
commit
78da2a954c
1 file changed
+10
-2
@@ -284,11 +284,19 @@ pub fn TargetReleasesPage(id: String) -> Element {
|
||||
.and_then(|n| n.as_str())
|
||||
.unwrap_or_default()
|
||||
.to_string(),
|
||||
Some(None) => String::new(),
|
||||
// Not a target of this workspace (or it cannot be read): said as the
|
||||
// target page says it, rather than as releases that fail to load.
|
||||
Some(None) => {
|
||||
return rsx! {
|
||||
div { class: "card target-missing",
|
||||
p { {crate::i18n::texts::targets::NOT_FOUND.get(lang)} }
|
||||
}
|
||||
}
|
||||
}
|
||||
None => return rsx! { div { class: "loading", {tx::LOADING.get(lang)} } },
|
||||
};
|
||||
let listed = match &*releases.read() {
|
||||
Some(Ok(listed)) if !name.is_empty() => listed.clone(),
|
||||
Some(Ok(listed)) => listed.clone(),
|
||||
Some(_) => {
|
||||
return rsx! {
|
||||
ReleaseCrumbs { id: id.clone(), name }
|
||||
|
||||
Reference in new issue
Block a user