FIX 3 für Codex

Dieser Commit ist enthalten in:
2025-06-18 01:35:54 +02:00
Ursprung a9cfecc699
Commit 231aa4caed
30 geänderte Dateien mit 573 neuen und 213 gelöschten Zeilen

Datei anzeigen

@@ -120,7 +120,7 @@
<td class="backup-actions">
{% if backup.status == 'success' %}
<div class="btn-group btn-group-sm" role="group">
<a href="/backup/download/{{ backup.id }}"
<a href="{{ url_for('admin.download_backup', backup_id=backup.id) }}"
class="btn btn-outline-primary"
title="Backup herunterladen">
📥 Download
@@ -197,7 +197,7 @@ function createBackup() {
btn.disabled = true;
btn.innerHTML = '⏳ Backup wird erstellt...';
fetch('/backup/create', {
fetch('{{ url_for('admin.create_backup') }}', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
@@ -252,7 +252,7 @@ function confirmRestore() {
loadingDiv.innerHTML = '<div class="spinner-border text-primary" role="status"><span class="visually-hidden">Loading...</span></div>';
document.body.appendChild(loadingDiv);
fetch(`/backup/restore/${backupId}`, {
fetch(`{{ url_for('admin.restore_backup', backup_id='') }}${backupId}`, {
method: 'POST',
body: formData
})
@@ -260,7 +260,7 @@ function confirmRestore() {
.then(data => {
if (data.success) {
alert('✅ ' + data.message + '\n\nDie Seite wird neu geladen...');
window.location.href = '/';
window.location.href = '{{ url_for('admin.dashboard') }}';
} else {
alert('❌ ' + data.message);
}
@@ -278,7 +278,7 @@ function deleteBackup(backupId, filename) {
return;
}
fetch(`/backup/delete/${backupId}`, {
fetch(`{{ url_for('admin.delete_backup', backup_id='') }}${backupId}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',