Fix upgrade execution logic/UI per oruga
This commit is contained in:
parent
72f48fa963
commit
9ee6521d6a
|
@ -19,9 +19,15 @@
|
||||||
${parent.render_this_page()}
|
${parent.render_this_page()}
|
||||||
|
|
||||||
% if expose_websockets and master.has_perm('execute'):
|
% if expose_websockets and master.has_perm('execute'):
|
||||||
<b-modal :active.sync="upgradeExecuting"
|
<${b}-modal full-screen
|
||||||
full-screen
|
% if request.use_oruga:
|
||||||
:can-cancel="false">
|
v-model:active="upgradeExecuting"
|
||||||
|
:cancelable="false"
|
||||||
|
% else:
|
||||||
|
:active.sync="upgradeExecuting"
|
||||||
|
:can-cancel="false"
|
||||||
|
% endif
|
||||||
|
>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-content">
|
<div class="card-content">
|
||||||
|
|
||||||
|
@ -32,6 +38,10 @@
|
||||||
Upgrading ${system_title} (please wait) ...
|
Upgrading ${system_title} (please wait) ...
|
||||||
{{ executeUpgradeComplete ? "DONE!" : "" }}
|
{{ executeUpgradeComplete ? "DONE!" : "" }}
|
||||||
</p>
|
</p>
|
||||||
|
% if request.use_oruga:
|
||||||
|
<progress class="progress is-large"
|
||||||
|
style="width: 400px;" />
|
||||||
|
% else:
|
||||||
<b-progress size="is-large"
|
<b-progress size="is-large"
|
||||||
style="width: 400px;"
|
style="width: 400px;"
|
||||||
## :value="80"
|
## :value="80"
|
||||||
|
@ -39,6 +49,7 @@
|
||||||
## format="percent"
|
## format="percent"
|
||||||
>
|
>
|
||||||
</b-progress>
|
</b-progress>
|
||||||
|
% endif
|
||||||
</div>
|
</div>
|
||||||
<div class="level-right">
|
<div class="level-right">
|
||||||
<div class="level-item">
|
<div class="level-item">
|
||||||
|
@ -65,7 +76,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</b-modal>
|
</${b}-modal>
|
||||||
% endif
|
% endif
|
||||||
|
|
||||||
% if master.has_perm('execute'):
|
% if master.has_perm('execute'):
|
||||||
|
|
|
@ -2060,7 +2060,10 @@ class MasterView(View):
|
||||||
|
|
||||||
# caller must explicitly request websocket behavior; otherwise
|
# caller must explicitly request websocket behavior; otherwise
|
||||||
# we will assume traditional behavior for progress
|
# 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
|
# make our progress tracker
|
||||||
progress = self.make_execute_progress(obj, ws=ws)
|
progress = self.make_execute_progress(obj, ws=ws)
|
||||||
|
|
Loading…
Reference in a new issue