fix: show contextual toast when saving with no targets

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 #586
This commit is contained in:
jaydeep-pipaliya
2026-03-31 11:48:56 +05:30
parent e345c6ee6e
commit e06f2f47b1
2 changed files with 8 additions and 2 deletions

View File

@@ -568,6 +568,8 @@
"targetErrorInvalidPortDescription": "Please enter a valid port number",
"targetErrorNoSite": "No site selected",
"targetErrorNoSiteDescription": "Please select a site for the target",
"targetTargetsCleared": "Targets cleared",
"targetTargetsClearedDescription": "All targets have been removed from this resource",
"targetCreated": "Target created",
"targetCreatedDescription": "Target has been created successfully",
"targetErrorCreate": "Failed to create target",