Compare commits
2 Commits
2e2795f994
...
c8b5db719c
| Author | SHA1 | Date |
|---|---|---|
|
|
c8b5db719c | |
|
|
e19a1341fd |
|
|
@ -22,7 +22,7 @@ pub struct TreeView {
|
|||
|
||||
#[derive(Clone, Serialize, Deserialize)]
|
||||
struct TreeViewNode {
|
||||
id: usize,
|
||||
id: String,
|
||||
status: DiagnosticStatus,
|
||||
children: Vec<TreeViewNode>,
|
||||
}
|
||||
|
|
@ -39,13 +39,17 @@ impl TreeView {
|
|||
for child in children {
|
||||
let status = graph.value_of(&child)?;
|
||||
let node = TreeViewNode {
|
||||
id: child.clone(),
|
||||
id: graph.full_name_from_key(&child)?,
|
||||
status: status,
|
||||
children: Self::get_nodes(&child, &graph)?,
|
||||
};
|
||||
|
||||
to_ret.push(node);
|
||||
}
|
||||
|
||||
// Make the order of same id'd (named) entries consistent.
|
||||
to_ret.sort_by(|a, b| a.id.cmp(&b.id));
|
||||
|
||||
return Ok(to_ret);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue