Fleet UI: Confirmed toast messages to end user for self-service install/uninstall (#29179)

This commit is contained in:
RachelElysia 2025-05-15 14:35:49 -04:00 committed by GitHub
parent bfad93a1f0
commit f30d8e1bb8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -293,6 +293,7 @@ const InstallerStatusAction = ({
onInstallOrUninstall();
}
} catch (error) {
// We only show toast message if API returns an error
renderFlash("error", "Couldn't install. Please try again.");
}
}, [deviceToken, id, onInstallOrUninstall, renderFlash]);

View file

@ -36,10 +36,9 @@ const UninstallSoftwareModal = ({
setIsUninstalling(true);
try {
await deviceUserAPI.uninstallSelfServiceSoftware(token, softwareId);
// TODO: Change this toast message or hide it all together?
// renderFlash("success", "Software uninstalled successfully!");
onSuccess();
} catch (error) {
// We only show toast message to end user if API returns an error
renderFlash("error", "Couldn't uninstall. Please try again.");
}
setIsUninstalling(false);