feat(item_list): put item names into the header
This commit is contained in:
parent
9eb930da19
commit
792b4daf04
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Reference in a new issue