Add support for sorting in peer table

This commit is contained in:
2024-02-28 15:50:57 +01:00
parent 20610204e5
commit 959127ac2c
6 changed files with 107 additions and 25 deletions

View File

@@ -211,10 +211,13 @@ onDestroy(() => {
</table>
<h3>Cache nodes</h3>
</section>
<PeerTable peers={status.peers.reduce((acc, val) => {if (val.role === "cache") {acc.push(val)}; return acc}, [])}/>
<section>
<h3>Storage nodes</h3>
</section>
<PeerTable peers={status.peers.reduce((acc, val) => {if (val.role === "storage") {acc.push(val)}; return acc}, [])}/>
<section>
<h3>Pixelstore stats</h3>
<table>