feat(item_list): put item names into the header

This commit is contained in:
ryan 2025-01-29 15:51:11 +03:00
parent 9eb930da19
commit 792b4daf04

View file

@ -506,9 +506,9 @@ pub fn ItemsList(
<thead> <thead>
<tr> <tr>
<th>{ "Property" }</th> <th>{ "Property" }</th>
{move || items.get().iter().enumerate().map(|(index, _)| { {move || items.get().iter().enumerate().map(|(index, item)| {
view! { view! {
<th>{ format!("Item {}", index + 1) }</th> <th>{ item.name.clone() }</th>
} }
}).collect::<Vec<_>>()} }).collect::<Vec<_>>()}
</tr> </tr>