Fix hub update failing in wizard:
- Change updateHub API expect from {success: false} to {}
- Returns full response object {success: true, message: "..."}
- Wizard can now properly check result.success
- Enables getCollections() call after successful update
Issue: Hub update showed "Hub update failed" despite success
Cause: RPC expect field extracted only boolean value instead of full object
Solution: Remove expect field to return complete response
Frontend Changes:
- htdocs/luci-static/resources/crowdsec-dashboard/api.js
- callUpdateHub: Change expect: {success: false} to expect: {}
- htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js
- Add comprehensive error logging and catch handler
- Better error messages with error.message details
Backend Returns:
{"success": true, "message": "Hub index updated successfully"}
Version: 0.6.0-6
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| crowdsec-dashboard | ||
| view/crowdsec-dashboard | ||