aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/dashboard/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/dashboard/mod.rs')
-rw-r--r--src/api/dashboard/mod.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/api/dashboard/mod.rs b/src/api/dashboard/mod.rs
index 9cf88a1..15b8cf9 100644
--- a/src/api/dashboard/mod.rs
+++ b/src/api/dashboard/mod.rs
@@ -395,8 +395,13 @@ async fn build(state: &AppState, graph: &Graph) -> JsonValue {
"dashboard": dashboards.get(member) }),
);
}
+ // In a swarm holding a store, the party this node is of: the page shows the store.
+ #[cfg(feature = "federation")]
+ let party = state.holding.party();
+ #[cfg(not(feature = "federation"))]
+ let party: Option<&str> = None;
json!({
- "node": { "id": local, "alias": state.alias },
+ "node": { "id": local, "alias": state.alias, "party": party },
"page": page().0,
"stats": stats,
"peers": peers,
@@ -900,7 +905,8 @@ mod tests {
}
/// The page in a browser (`check.js`): it loads without errors, the peers table and
- /// the map draw what the state says, and a large map doesn't hold the page up.
+ /// the map draw what the state says, a large map doesn't hold the page up, and the
+ /// federation shows who writes where, what a proposal changes, and the votes.
/// Needs Node.js with Playwright's library and its Chromium (`check.nix` gives them),
/// so only when asked: `cargo test --features dashboard dashboard_in_a_browser --
/// --ignored`.