show error message (#38246)

<!-- Add the related story/sub-task/bug number, like Resolves #123, or
remove if NA -->
**Related issue:** Resolves #34726

screenshot of fixed error

<img width="1494" height="413" alt="image"
src="https://github.com/user-attachments/assets/1783ad2a-10e8-4840-bfe0-6bb5a5746127"
/>

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

## Testing

- [x] QA'd all new/changed functionality manually
This commit is contained in:
Jahziel Villasana-Espinoza
2026-01-13 14:58:48 -05:00
committed by GitHub
parent 3fc24fb1e8
commit 841d65e722
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
- Updated UI to show a generic error message when attempting to delete setup experience software.
@@ -48,7 +48,7 @@ const DeleteSoftwareModal = ({
const reason = getErrorReason(error);
if (reason.includes("Policy automation uses this software")) {
renderFlash("error", DELETE_SW_USED_BY_POLICY_ERROR_MSG);
} else if (reason.includes("This software is installed when")) {
} else if (reason.includes("This software is installed during")) {
renderFlash("error", DELETE_SW_INSTALLED_DURING_SETUP_ERROR_MSG);
} else {
renderFlash("error", "Couldn't delete. Please try again.");