Fix upgrade execution logic/UI per oruga

This commit is contained in:
Lance Edgar 2024-04-28 20:12:06 -05:00
parent 72f48fa963
commit 9ee6521d6a
2 changed files with 19 additions and 5 deletions

View file

@ -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)