fix: use combined_rev for needs_update dashboard badge
This commit is contained in:
parent
5951758b35
commit
0873159b9e
1 changed files with 5 additions and 1 deletions
|
|
@ -56,7 +56,11 @@ pub struct ContainerView {
|
||||||
/// resolves every per-agent attribute the dashboard surfaces.
|
/// resolves every per-agent attribute the dashboard surfaces.
|
||||||
pub async fn build_all(coord: &Coordinator) -> Vec<ContainerView> {
|
pub async fn build_all(coord: &Coordinator) -> Vec<ContainerView> {
|
||||||
let raw = lifecycle::list().await.unwrap_or_default();
|
let raw = lifecycle::list().await.unwrap_or_default();
|
||||||
let current_rev = crate::auto_update::current_flake_rev(&coord.hyperhive_flake);
|
let current_rev = crate::auto_update::current_flake_rev(&coord.hyperhive_flake)
|
||||||
|
.map(|flake_rev| {
|
||||||
|
let meta_rev = crate::auto_update::current_meta_rev();
|
||||||
|
crate::auto_update::combined_rev(&flake_rev, meta_rev.as_deref())
|
||||||
|
});
|
||||||
let locked = read_meta_locked_revs();
|
let locked = read_meta_locked_revs();
|
||||||
let mut out = Vec::new();
|
let mut out = Vec::new();
|
||||||
for c in &raw {
|
for c in &raw {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue