Fix initial datasync status display when supervisor error occurs
This commit is contained in:
parent
ed55fbca9e
commit
5fb99c54c9
|
@ -11,7 +11,7 @@
|
|||
</%def>
|
||||
|
||||
<%def name="page_content()">
|
||||
% if expose_websockets:
|
||||
% if expose_websockets and not supervisor_error:
|
||||
<b-notification type="is-warning"
|
||||
:active="websocketClosed"
|
||||
:closable="false">
|
||||
|
@ -21,7 +21,11 @@
|
|||
<b-field label="Supervisor Status">
|
||||
<div style="display: flex;">
|
||||
|
||||
<pre :class="processInfo.statename == 'RUNNING' ? 'has-background-success' : 'has-background-warning'">{{ processDescription }}</pre>
|
||||
% if supervisor_error:
|
||||
<pre class="has-background-warning">${supervisor_error}</pre>
|
||||
% else:
|
||||
<pre :class="(processInfo && processInfo.statename == 'RUNNING') ? 'has-background-success' : 'has-background-warning'">{{ processDescription }}</pre>
|
||||
% endif
|
||||
|
||||
<div style="margin-left: 1rem;">
|
||||
% if request.has_perm('datasync.restart'):
|
||||
|
@ -128,7 +132,7 @@
|
|||
this.restartingProcess = true
|
||||
}
|
||||
|
||||
% if expose_websockets:
|
||||
% if expose_websockets and not supervisor_error:
|
||||
|
||||
ThisPageData.ws = null
|
||||
ThisPageData.websocketClosed = false
|
||||
|
|
Loading…
Reference in a new issue