Fix upgrade execution logic/UI per oruga
This commit is contained in:
parent
72f48fa963
commit
9ee6521d6a
2 changed files with 19 additions and 5 deletions
|
@ -2060,7 +2060,10 @@ class MasterView(View):
|
|||
|
||||
# caller must explicitly request websocket behavior; otherwise
|
||||
# we will assume traditional behavior for progress
|
||||
ws = self.request.is_xhr and self.request.json_body.get('ws')
|
||||
ws = False
|
||||
if ((self.request.is_xhr or self.request.content_type == 'application/json')
|
||||
and self.request.json_body.get('ws')):
|
||||
ws = True
|
||||
|
||||
# make our progress tracker
|
||||
progress = self.make_execute_progress(obj, ws=ws)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue