sort device grid by name

This commit is contained in:
Maxi Quoß
2023-01-23 00:27:50 +01:00
parent 037f718a2e
commit 665c586d44
2 changed files with 5 additions and 4 deletions

View File

@@ -33,12 +33,12 @@ Open up [localhost:5173/](localhost:5173/)
- [ ] add rest of settings page
- [ ] form for adding new devices
- [ ] add per device settings
- [x] theme toggle button
- [x] add device ports to cards
- [x] ~~theme toggle button~~
- [x] ~~add device ports to cards~~
- backend
- [x] make sure ping works
- [x] ~~make sure ping works~~
- [ ] make sure arp works
- [ ] make sure wake works
- [ ] remove nmap?

View File

@@ -13,7 +13,8 @@
// get all devices in pocketbase
const result = await pb.collection('devices').getFullList(200, {
expand: 'ports'
expand: 'ports',
sort: 'name'
});
result.forEach((device) => {
devices[device.id] = device;