Skip to content

fix: show contextual toast when saving with no targets#2748

Merged
oschwartz10612 merged 1 commit intofosrl:mainfrom
jaydeep-pipaliya:fix/empty-targets-toast-message
Mar 31, 2026
Merged

fix: show contextual toast when saving with no targets#2748
oschwartz10612 merged 1 commit intofosrl:mainfrom
jaydeep-pipaliya:fix/empty-targets-toast-message

Conversation

@jaydeep-pipaliya
Copy link
Copy Markdown
Contributor

@jaydeep-pipaliya jaydeep-pipaliya commented Mar 31, 2026

Summary

Follow-up to #2711 based on maintainer feedback — saving with no targets should still work (to allow clearing targets), but the notification should reflect what actually happened.

What changed: Instead of always showing "Settings updated" when saving, the toast now shows:

  • "Targets cleared" when the target list is empty
  • "Settings updated" when targets were actually saved

No save action is blocked — this only changes the notification text.

Fixes #586

Test plan

  • Save with no targets → toast says "Targets cleared"
  • Save with targets → toast says "Settings updated"
  • Remove all targets and save → deletions process correctly, toast says "Targets cleared"

Instead of always showing "Settings updated" when saving, show
"Targets cleared" when the target list is empty. This gives the user
accurate feedback without blocking the save action.

Fixes fosrl#586
@oschwartz10612
Copy link
Copy Markdown
Member

This is good thanks!

@oschwartz10612 oschwartz10612 merged commit 322c136 into fosrl:main Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Dont show targets updated when you save with no targets

2 participants