mirror of
https://github.com/retspen/webvirtcloud
synced 2026-12-03 17:36:05 +00:00
fix(ui): a block or a job's cancel asks first; every delete and save says it is done
- Block in the Users list asks first: the user is signed out and their API tokens are deleted, which unblocking does not bring back. Block and Unblock then say what they did. - Cancel on a job's page and in the job panel asks first, naming the job; the button says Cancel the job, apart from the dialog's Cancel. - Deleting a user or a group, removing a host from the panel or an owner from a VM, and deleting an interface, a network filter or a secret say so, as the other deletes do. - Renaming a tag and saving a VM's title and description say so.
This commit is contained in:
parent
00a44f7621
commit
e79817e7db
22 changed files with 247 additions and 39 deletions
|
|
@ -2688,6 +2688,7 @@ def change_options(request, pk):
|
|||
options = {key: request.POST.get(key, "") for key in ("title", "description") if key in request.POST}
|
||||
with audit_vm(request, instance, "edit options"):
|
||||
instance.proxy.set_options(options)
|
||||
messages.success(request, _("Title and description saved"))
|
||||
return get_safe_redirect(
|
||||
request, default=reverse("instances:instance", args=[instance.id]) + "#options"
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue