From 935ff9af0abe8a27492edc3b977d0d77a5be5e33 Mon Sep 17 00:00:00 2001 From: Jacob Shandling Date: Thu, 26 Sep 2024 14:39:36 -0700 Subject: [PATCH 1/2] Update 3 success messages --- .../details/HostDetailsPage/modals/LockModal/LockModal.tsx | 2 +- .../HostDetailsPage/modals/UnlockModal/UnlockModal.tsx | 5 ++++- .../details/HostDetailsPage/modals/WipeModal/WipeModal.tsx | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx index 9877e4729ac0..a527de72b338 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx @@ -34,7 +34,7 @@ const LockModal = ({ try { await hostAPI.lockHost(id); onSuccess(); - renderFlash("success", "Host is locking!"); + renderFlash("success", "Locking host or will lock when it comes online."); } catch (e) { renderFlash("error", getErrorReason(e)); } diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx index 178f21a1b8f7..5d40e09886d2 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/UnlockModal/UnlockModal.tsx @@ -51,7 +51,10 @@ const UnlockModal = ({ try { await hostAPI.unlockHost(id); onSuccess(); - renderFlash("success", "Host is unlocking!"); + renderFlash( + "success", + "Unlocking host or will unlock when it comes online." + ); } catch (e) { renderFlash("error", getErrorReason(e)); } diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/WipeModal/WipeModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/WipeModal/WipeModal.tsx index 7df40b2adb97..9e7754ac55cb 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/WipeModal/WipeModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/WipeModal/WipeModal.tsx @@ -27,7 +27,10 @@ const WipeModal = ({ id, hostName, onSuccess, onClose }: IWipeModalProps) => { try { await hostAPI.wipeHost(id); onSuccess(); - renderFlash("success", "Success! Host is wiping."); + renderFlash( + "success", + "Wiping host or will wipe when the host comes online." + ); } catch (e) { renderFlash("error", getErrorReason(e)); } From 75368a3bd254e72714f75c03ea3731dea3545f96 Mon Sep 17 00:00:00 2001 From: Jacob Shandling Date: Thu, 26 Sep 2024 14:41:23 -0700 Subject: [PATCH 2/2] change file --- changes/18354-update-success-messages | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/18354-update-success-messages diff --git a/changes/18354-update-success-messages b/changes/18354-update-success-messages new file mode 100644 index 000000000000..98f582dad033 --- /dev/null +++ b/changes/18354-update-success-messages @@ -0,0 +1 @@ +* Update success messages for lock, unlock, and wipe commands in the UI.