Update start and better volume names

This commit is contained in:
2025-06-25 14:53:32 +02:00
parent 56d94a06ce
commit 0a2cddf122
6 changed files with 826 additions and 223 deletions

View File

@@ -9,9 +9,9 @@
{% block content %}
{{ header(
title="Launching Instance",
description="Setting up your new DocuPulse instance",
icon="fa-rocket"
title=is_update and "Updating Instance" or "Launching Instance",
description=is_update and "Updating your DocuPulse instance with the latest version" or "Setting up your new DocuPulse instance",
icon="fa-arrow-up" if is_update else "fa-rocket"
) }}
<div class="container-fluid">
@@ -78,6 +78,12 @@
// Pass CSRF token to JavaScript
window.csrfToken = '{{ csrf_token }}';
// Pass update parameters if this is an update operation
window.isUpdate = {{ 'true' if is_update else 'false' }};
window.updateInstanceId = '{{ instance_id or "" }}';
window.updateRepoId = '{{ repo_id or "" }}';
window.updateBranch = '{{ branch or "" }}';
</script>
<script src="{{ url_for('static', filename='js/launch_progress.js') }}"></script>
{% endblock %}