fix: show informative message when saving with no targets #63

Closed
opened 2026-04-05 17:00:47 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jaydeep-pipaliya on 3/25/2026

Summary

  • When saving targets with an empty target list and no removals, the app previously showed a misleading "Settings updated" success notification
  • Now shows "No targets to save — Please add at least one target before saving" instead
  • Added translation keys targetNoTargets and targetNoTargetsDescription to en-US.json

Fixes #586

Test plan

  • Navigate to a resource's proxy settings
  • Without adding any targets, click "Save Targets"
  • Verify the toast says "No targets to save" instead of "Settings updated"
  • Add a target, save, and verify "Settings updated" still shows correctly
  • Remove all targets and save — verify deletions still process correctly
*Originally created by @jaydeep-pipaliya on 3/25/2026* ## Summary - When saving targets with an empty target list and no removals, the app previously showed a misleading "Settings updated" success notification - Now shows "No targets to save — Please add at least one target before saving" instead - Added translation keys `targetNoTargets` and `targetNoTargetsDescription` to `en-US.json` Fixes #586 ## Test plan - [ ] Navigate to a resource's proxy settings - [ ] Without adding any targets, click "Save Targets" - [ ] Verify the toast says "No targets to save" instead of "Settings updated" - [ ] Add a target, save, and verify "Settings updated" still shows correctly - [ ] Remove all targets and save — verify deletions still process correctly
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#63