mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Fleet UI: Confirmed toast messages to end user for self-service install/uninstall (#29179)
This commit is contained in:
parent
bfad93a1f0
commit
f30d8e1bb8
2 changed files with 2 additions and 2 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue