Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

18354 lock wipe message updates #22447

Merged
merged 2 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/18354-update-success-messages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Update success messages for lock, unlock, and wipe commands in the UI.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down
Loading