Use POST/Redirect/GET for an instance resize form
This patch improves UX by blocking a second POST request during page reload after "Confirm instance resize" action Closes-Bug: #1826509 Change-Id: I80c66f7828be17ccf06840a06229c447ccb1bb67
This commit is contained in:
parent
f9374ffb82
commit
d6c56c26b3
@ -17,6 +17,7 @@ import logging
|
||||
|
||||
from django.conf import settings
|
||||
from django.http import HttpResponse
|
||||
from django import shortcuts
|
||||
from django import template
|
||||
from django.template.defaultfilters import title
|
||||
from django import urls
|
||||
@ -620,6 +621,7 @@ class ConfirmResize(policy.PolicyTargetMixin, tables.Action):
|
||||
|
||||
def single(self, table, request, instance):
|
||||
api.nova.server_confirm_resize(request, instance)
|
||||
return shortcuts.redirect(request.get_full_path())
|
||||
|
||||
|
||||
class RevertResize(policy.PolicyTargetMixin, tables.Action):
|
||||
|
Loading…
x
Reference in New Issue
Block a user