-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: add confirmation pop-up for VM stop and pause actions #94
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Yi-Ya Chen <[email protected]>
.actions { | ||
text-align: right; | ||
} | ||
</style> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy the dialog content from https://github.com/harvester/harvester-ui-extension/blob/main/pkg/harvester/dialog/ConfirmRelatedToRemoveDialog.vue
.
We can modify the component if we prefer a simpler confirmation pop-up.
stop: | ||
message: "Are you sure you want to continue stop the {type} {names}?" | ||
pause: | ||
message: "Are you sure you want to continue pause the {type} {names}?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy most of the wording from Rancher.
ref: https://github.com/rancher/dashboard/blob/36d8a069eee391f916ca97f6c2b0f04d1bbb8db6/shell/assets/translations/en-us.yaml#L4764-L4779
</h4> | ||
</template> | ||
|
||
<template #body> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need to input the VM name to stop or pause a VM.
An alert modal is enough. User can press cmd key to bypass the popup modal.
Signed-off-by: Yi-Ya Chen <[email protected]>
TODO: Test bulk action functionality |
@houhoucoop I agree with Andy, I would avoid typing vm name for confirmation. Otherwise LGTM |
Summary
Stop
orPause
action is clickedCommand
key while clicking the actionPR Checklists
Related Issue
[ENHANCEMENT] Add confirmation pop-up for VM stop and pause actions #7382
Test screenshot/video
Confirm pop-up for stop VM
Confirm pop-up for pause VM
Extra technical notes summary
N/A