mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-11 04:43:59 +00:00
Fixed the remaining contamination issue where PBS forms would retain PVE data after canceling a PVE node addition. The form now properly resets when opening the modal for adding a new node. Two fixes were needed: 1. Set currentNodeType when editing any node (previous commit) 2. Clear form data when opening modal for new nodes (this commit) Both issues reported by krom are now resolved: - PBS forms no longer show PVE data - Editing PBS nodes properly populates the form
1.1 KiB
1.1 KiB
PBS Form Fix Verification
What was broken
- When editing a PBS node, the form wouldn't populate with PBS data
- PBS forms could show PVE data if a PVE node was edited first
What we fixed
In /opt/pulse/frontend-modern/src/components/Settings/Settings.tsx:
- Lines 886 and 1063: Added
setCurrentNodeType(node.type as 'pve' | 'pbs'); - This ensures when editing any node, we set the correct type
How to verify the fix works
Test #1: PBS form after PVE
- Go to Settings → Nodes
- Click "Add PVE Node"
- Fill in some data
- Press Escape to cancel
- Click "Add PBS Node"
- VERIFY: PBS form should be completely empty
Test #2: Edit PBS node
- Add a PBS node with test data
- Click the edit icon on that PBS node
- VERIFY: Form should show the PBS node's data
Test #3: Edit PVE after PBS
- Add a PVE node
- Add a PBS node
- Edit the PBS node
- Cancel
- Edit the PVE node
- VERIFY: PVE form shows PVE data, not PBS data
Current Status
- Fix implemented in source code
- Frontend rebuilt with fix
- Backend restarted
- Manual testing completed
- User confirmed it works