Skip to content

Commit 006eb6c

Browse files
authored
🔀 Merge pull request #1460 from alayham/fix-proxmox-widger-sorting
Fixed sorting by vmid in the proxmox widget
2 parents 8c5cf6f + 4a570ed commit 006eb6c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/widgets.md

+5
Original file line numberDiff line numberDiff line change
@@ -2130,6 +2130,11 @@ This will show the list of VMs, with a title and a linked fotter, hiding VM temp
21302130
footer_as_link: true
21312131
hide_templates: 1
21322132
```
2133+
#### Troubleshooting
2134+
- **404 Error in development mode**: The error might disappear in production mode `yarn start`
2135+
- **500 Error in production mode**: Try adding the certificate authority (CA) certificate of your Proxmox host to Node.js.
2136+
- Download the Proxmox CA certificate to your Dashy host.
2137+
- 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`
21332138
#### Info
21342139

21352140
- **CORS**: 🟠 Proxied

src/components/Widgets/Proxmox.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
}
9595
},
9696
processData(data) {
97-
this.data = data.data.sort((a, b) => a.vmid > b.vmid);
97+
this.data = data.data.sort((a, b) => Number(a.vmid) > Number(b.vmid));
9898
if (this.hideTemplates) {
9999
this.data = this.data.filter(item => item.template !== 1);
100100
}

0 commit comments

Comments
 (0)