mirror of
https://github.com/kodxana/madiator-docker-runpod.git
synced 2024-11-24 20:00:13 +01:00
Fixed instalation UI
This commit is contained in:
parent
ae6b5014ff
commit
7b3a885f66
1 changed files with 29 additions and 6 deletions
|
@ -2403,6 +2403,7 @@
|
||||||
{% for app_key, app_info in apps.items() %}
|
{% for app_key, app_info in apps.items() %}
|
||||||
<div class="app">
|
<div class="app">
|
||||||
<h2>{{ app_info.name }}</h2>
|
<h2>{{ app_info.name }}</h2>
|
||||||
|
{% if app_status[app_key]['installed'] %}
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<button onclick="startApp('{{ app_key }}')" id="start-{{ app_key }}" class="start-button" {% if app_status[app_key]['status'] == 'running' %}disabled{% endif %}>
|
<button onclick="startApp('{{ app_key }}')" id="start-{{ app_key }}" class="start-button" {% if app_status[app_key]['status'] == 'running' %}disabled{% endif %}>
|
||||||
<i class="fas fa-play"></i> Start
|
<i class="fas fa-play"></i> Start
|
||||||
|
@ -2420,17 +2421,39 @@
|
||||||
<i class="fas fa-times-circle"></i> Force Kill
|
<i class="fas fa-times-circle"></i> Force Kill
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{% if app_key == 'bcomfy' and app_status[app_key]['installed'] %}
|
{% if app_key == 'bcomfy' %}
|
||||||
<button onclick="fixCustomNodes('{{ app_key }}')" id="fix-custom-nodes-{{ app_key }}" class="fix-custom-nodes-button">
|
<button onclick="fixCustomNodes('{{ app_key }}')" id="fix-custom-nodes-{{ app_key }}" class="fix-custom-nodes-button">
|
||||||
<i class="fas fa-wrench"></i> Fix Custom Nodes
|
<i class="fas fa-wrench"></i> Fix Custom Nodes
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not app_status[app_key]['installed'] %}
|
|
||||||
<button onclick="installApp('{{ app_key }}')" id="install-{{ app_key }}" class="install-button">
|
|
||||||
<i class="fas fa-download"></i> Install
|
|
||||||
</button>
|
|
||||||
{% endif %}
|
|
||||||
<div class="status">Status: {{ app_status[app_key]['status'] }}</div>
|
<div class="status">Status: {{ app_status[app_key]['status'] }}</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="install-container">
|
||||||
|
<button onclick="installApp('{{ app_key }}')" id="install-{{ app_key }}" class="install-button">
|
||||||
|
<i class="fas fa-download"></i> Install
|
||||||
|
</button>
|
||||||
|
<div id="install-progress-{{ app_key }}" class="install-progress" style="display: none;">
|
||||||
|
<div class="progress-container">
|
||||||
|
<div class="progress-label">Download Progress:</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-bar-fill download-progress" style="width: 0%">0%</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="progress-container">
|
||||||
|
<div class="progress-label">Unpack Progress:</div>
|
||||||
|
<div class="progress-bar">
|
||||||
|
<div class="progress-bar-fill unpack-progress" style="width: 0%">0%</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="download-info">
|
||||||
|
<span class="download-speed"></span>
|
||||||
|
<span class="download-eta"></span>
|
||||||
|
</div>
|
||||||
|
<div class="install-stage"></div>
|
||||||
|
</div>
|
||||||
|
<div id="install-logs-{{ app_key }}" class="install-logs" style="display: none;"></div>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue