mirror of
https://github.com/Lissy93/dashy.git
synced 2025-04-08 17:06:18 +02:00
🔀 Merge pull request #1460 from alayham/fix-proxmox-widger-sorting
Fixed sorting by vmid in the proxmox widget
This commit is contained in:
commit
006eb6c771
@ -2130,6 +2130,11 @@ This will show the list of VMs, with a title and a linked fotter, hiding VM temp
|
||||
footer_as_link: true
|
||||
hide_templates: 1
|
||||
```
|
||||
#### Troubleshooting
|
||||
- **404 Error in development mode**: The error might disappear in production mode `yarn start`
|
||||
- **500 Error in production mode**: Try adding the certificate authority (CA) certificate of your Proxmox host to Node.js.
|
||||
- Download the Proxmox CA certificate to your Dashy host.
|
||||
- Export environment variable `NODE_EXTRA_CA_CERTS` and set its value to the path of the downloaded CA certificate. Example: `export NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/devlab_ca.pem`
|
||||
#### Info
|
||||
|
||||
- **CORS**: 🟠 Proxied
|
||||
|
@ -94,7 +94,7 @@ export default {
|
||||
}
|
||||
},
|
||||
processData(data) {
|
||||
this.data = data.data.sort((a, b) => a.vmid > b.vmid);
|
||||
this.data = data.data.sort((a, b) => Number(a.vmid) > Number(b.vmid));
|
||||
if (this.hideTemplates) {
|
||||
this.data = this.data.filter(item => item.template !== 1);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user