|
|
@@ -1,396 +0,0 @@
|
|
|
-{% extends "admin/base.html" %}
|
|
|
-
|
|
|
-{% block title %}Salvas de Base de Datos - Administrador Squid Proxy{% endblock %}
|
|
|
-
|
|
|
-{% block content %}
|
|
|
-<div x-data="backupManager()" class="space-y-6">
|
|
|
-
|
|
|
- <!-- Page Header -->
|
|
|
- <div class="flex items-center justify-between">
|
|
|
- <div>
|
|
|
- <h2 class="text-2xl font-bold text-gray-800">Salvas de Base de Datos</h2>
|
|
|
- <p class="text-sm text-gray-500 mt-1">Configura y gestiona las copias de seguridad automáticas</p>
|
|
|
- </div>
|
|
|
- <button @click="triggerManualBackup()" :disabled="loadingManual"
|
|
|
- class="flex items-center gap-2 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold px-5 py-2.5 rounded-lg shadow-lg hover:shadow-xl transform hover:scale-105 transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed disabled:transform-none">
|
|
|
- <i class="fas fa-save" :class="loadingManual ? 'animate-spin fa-spinner' : 'fa-save'"></i>
|
|
|
- <span x-text="loadingManual ? 'Guardando...' : 'Salva Manual'"></span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Status Banner -->
|
|
|
- <div x-show="statusMsg" x-transition
|
|
|
- :class="statusType === 'success' ? 'bg-emerald-50 border border-emerald-200 text-emerald-800' : 'bg-red-50 border border-red-200 text-red-800'"
|
|
|
- class="flex items-center gap-3 px-4 py-3 rounded-lg" style="display:none;">
|
|
|
- <i :class="statusType === 'success' ? 'fas fa-check-circle text-emerald-500' : 'fas fa-times-circle text-red-500'"></i>
|
|
|
- <span x-text="statusMsg" class="text-sm font-medium"></span>
|
|
|
- <button @click="statusMsg = ''" class="ml-auto text-gray-400 hover:text-gray-600"><i class="fas fa-times"></i></button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Stats Cards -->
|
|
|
- <div class="grid grid-cols-1 sm:grid-cols-3 gap-4">
|
|
|
- <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-5 flex items-center gap-4">
|
|
|
- <div class="w-12 h-12 bg-blue-100 rounded-xl flex items-center justify-center">
|
|
|
- <i class="fas fa-database text-blue-600 text-xl"></i>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <p class="text-xs text-gray-500 uppercase tracking-wide font-medium">Total Salvas</p>
|
|
|
- <p class="text-2xl font-bold text-gray-800" x-text="backups.length">--</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-5 flex items-center gap-4">
|
|
|
- <div class="w-12 h-12 bg-emerald-100 rounded-xl flex items-center justify-center">
|
|
|
- <i class="fas fa-clock text-emerald-600 text-xl"></i>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <p class="text-xs text-gray-500 uppercase tracking-wide font-medium">Última Salva</p>
|
|
|
- <p class="text-sm font-semibold text-gray-800" x-text="lastBackupDate">Sin salvas</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <div class="bg-white rounded-xl shadow-sm border border-gray-100 p-5 flex items-center gap-4">
|
|
|
- <div class="w-12 h-12 bg-purple-100 rounded-xl flex items-center justify-center">
|
|
|
- <i class="fas fa-hdd text-purple-600 text-xl"></i>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <p class="text-xs text-gray-500 uppercase tracking-wide font-medium">Espacio Total</p>
|
|
|
- <p class="text-sm font-semibold text-gray-800" x-text="totalSize">0 B</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="grid grid-cols-1 lg:grid-cols-5 gap-6">
|
|
|
-
|
|
|
- <!-- Configuration Panel -->
|
|
|
- <div class="lg:col-span-2 bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden">
|
|
|
- <div class="bg-gradient-to-r from-gray-50 to-gray-100 px-6 py-4 border-b border-gray-200">
|
|
|
- <h3 class="text-base font-semibold text-gray-800 flex items-center gap-2">
|
|
|
- <i class="fas fa-sliders-h text-blue-500"></i>
|
|
|
- Configuración de Salvas
|
|
|
- </h3>
|
|
|
- </div>
|
|
|
-
|
|
|
- <form @submit.prevent="saveConfig()" class="p-6 space-y-5">
|
|
|
- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
-
|
|
|
- <!-- Database Engine -->
|
|
|
- <div>
|
|
|
- <label class="block text-sm font-medium text-gray-700 mb-2">
|
|
|
- <i class="fas fa-server text-gray-400 mr-1"></i> Motor de Base de Datos
|
|
|
- </label>
|
|
|
- <div class="relative">
|
|
|
- <select x-model="config.db_type" @change="onDbTypeChange()"
|
|
|
- class="w-full appearance-none bg-white border border-gray-300 text-gray-700 text-sm rounded-lg px-4 py-2.5 pr-8 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors">
|
|
|
- <option value="sqlite">SQLite (Activo)</option>
|
|
|
- <option value="mysql" disabled class="text-gray-400">MySQL / MariaDB (Próximamente)</option>
|
|
|
- <option value="postgresql" disabled class="text-gray-400">PostgreSQL (Próximamente)</option>
|
|
|
- </select>
|
|
|
- <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-400">
|
|
|
- <i class="fas fa-chevron-down text-xs"></i>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <template x-if="config.db_type !== 'sqlite'">
|
|
|
- <p class="mt-1.5 text-xs text-amber-600 flex items-center gap-1">
|
|
|
- <i class="fas fa-exclamation-triangle"></i>
|
|
|
- Este motor aún no está implementado.
|
|
|
- </p>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Frequency -->
|
|
|
- <div>
|
|
|
- <label class="block text-sm font-medium text-gray-700 mb-2">
|
|
|
- <i class="fas fa-calendar-alt text-gray-400 mr-1"></i> Frecuencia
|
|
|
- </label>
|
|
|
- <div class="relative">
|
|
|
- <select x-model="config.frequency"
|
|
|
- class="w-full appearance-none bg-white border border-gray-300 text-gray-700 text-sm rounded-lg px-4 py-2.5 pr-8 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors">
|
|
|
- <option value="daily_weekly">Diaria — máx. 3 por semana</option>
|
|
|
- <option value="daily_monthly">Diaria — máx. 3 por mes</option>
|
|
|
- </select>
|
|
|
- <div class="pointer-events-none absolute inset-y-0 right-0 flex items-center px-3 text-gray-400">
|
|
|
- <i class="fas fa-chevron-down text-xs"></i>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- <p class="mt-1.5 text-xs text-gray-500 flex items-center gap-1">
|
|
|
- <i class="fas fa-info-circle"></i>
|
|
|
- <span x-text="config.frequency === 'daily_weekly' ? 'Se ejecuta diariamente, conservando máx. 3 salvas por semana' : 'Se ejecuta diariamente, conservando máx. 3 salvas por mes'"></span>
|
|
|
- </p>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Retention -->
|
|
|
- <div>
|
|
|
- <div class="flex items-center justify-between mb-2">
|
|
|
- <label class="block text-sm font-medium text-gray-700">
|
|
|
- <i class="fas fa-archive text-gray-400 mr-1"></i> Retención máxima
|
|
|
- </label>
|
|
|
- <span class="inline-flex items-center gap-1 bg-blue-100 text-blue-700 text-xs font-semibold px-2.5 py-0.5 rounded-full">
|
|
|
- <i class="fas fa-lock text-xs"></i> Fijo: 3 salvas
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- <div class="flex items-center gap-3 bg-gray-50 border border-gray-200 rounded-lg px-4 py-3">
|
|
|
- <div class="flex gap-1.5">
|
|
|
- <template x-for="i in [1,2,3]" :key="i">
|
|
|
- <div class="w-8 h-8 rounded-lg flex items-center justify-center text-sm font-bold bg-blue-500 text-white shadow-sm">
|
|
|
- <span x-text="i"></span>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- <p class="text-xs text-gray-600">Se mantienen las 3 salvas más recientes. Las más antiguas se eliminan automáticamente.</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Backup Directory -->
|
|
|
- <div>
|
|
|
- <label class="block text-sm font-medium text-gray-700 mb-2">
|
|
|
- <i class="fas fa-folder text-gray-400 mr-1"></i> Directorio de Salvas
|
|
|
- </label>
|
|
|
- <input type="text" x-model="config.backup_dir"
|
|
|
- class="w-full bg-white border border-gray-300 text-gray-700 text-sm rounded-lg px-4 py-2.5 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent transition-colors"
|
|
|
- placeholder="/opt/SquidStats/backups" />
|
|
|
- <p class="mt-1.5 text-xs text-gray-500">Ruta absoluta donde se guardarán las salvas</p>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Enabled Toggle -->
|
|
|
- <div class="flex items-center justify-between bg-gray-50 rounded-lg px-4 py-3 border border-gray-200">
|
|
|
- <div>
|
|
|
- <p class="text-sm font-medium text-gray-700">Salvas automáticas</p>
|
|
|
- <p class="text-xs text-gray-500 mt-0.5">Habilitar programación automática</p>
|
|
|
- </div>
|
|
|
- <button type="button" @click="config.enabled = !config.enabled"
|
|
|
- :class="config.enabled ? 'bg-blue-600' : 'bg-gray-300'"
|
|
|
- class="relative inline-flex h-6 w-11 flex-shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2">
|
|
|
- <span :class="config.enabled ? 'translate-x-5' : 'translate-x-0'"
|
|
|
- class="pointer-events-none inline-block h-5 w-5 transform rounded-full bg-white shadow ring-0 transition duration-200 ease-in-out"></span>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Submit -->
|
|
|
- <button type="submit" :disabled="loadingSave"
|
|
|
- class="w-full flex items-center justify-center gap-2 bg-gradient-to-r from-blue-600 to-blue-700 hover:from-blue-700 hover:to-blue-800 text-white font-semibold py-2.5 rounded-lg shadow hover:shadow-lg transition-all duration-200 disabled:opacity-60 disabled:cursor-not-allowed">
|
|
|
- <i :class="loadingSave ? 'fas fa-spinner fa-spin' : 'fas fa-save'"></i>
|
|
|
- <span x-text="loadingSave ? 'Guardando...' : 'Guardar Configuración'"></span>
|
|
|
- </button>
|
|
|
- </form>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Backups List -->
|
|
|
- <div class="lg:col-span-3 bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden flex flex-col">
|
|
|
- <div class="bg-gradient-to-r from-gray-50 to-gray-100 px-6 py-4 border-b border-gray-200 flex items-center justify-between">
|
|
|
- <h3 class="text-base font-semibold text-gray-800 flex items-center gap-2">
|
|
|
- <i class="fas fa-history text-blue-500"></i>
|
|
|
- Historial de Salvas
|
|
|
- </h3>
|
|
|
- <button @click="loadBackups()" class="text-xs text-blue-600 hover:text-blue-800 font-medium flex items-center gap-1 transition-colors">
|
|
|
- <i class="fas fa-sync-alt" :class="loadingList ? 'animate-spin' : ''"></i> Actualizar
|
|
|
- </button>
|
|
|
- <button @click="statusMsg=''" class="text-xs text-gray-500 hover:text-gray-700 font-medium px-2">
|
|
|
- <i class="fas fa-times"></i> Cerrar mensaje
|
|
|
- </button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Loading -->
|
|
|
- <div x-show="loadingList" class="flex-1 flex items-center justify-center py-16">
|
|
|
- <div class="text-center">
|
|
|
- <i class="fas fa-spinner fa-spin text-blue-500 text-3xl mb-3"></i>
|
|
|
- <p class="text-sm text-gray-500">Cargando salvas...</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Empty State -->
|
|
|
- <div x-show="!loadingList && backups.length === 0" class="flex-1 flex items-center justify-center py-16">
|
|
|
- <div class="text-center px-6">
|
|
|
- <div class="w-16 h-16 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4">
|
|
|
- <i class="fas fa-box-open text-gray-400 text-2xl"></i>
|
|
|
- </div>
|
|
|
- <p class="text-sm font-medium text-gray-600">No hay salvas disponibles</p>
|
|
|
- <p class="text-xs text-gray-400 mt-1">Realiza una salva manual o activa las automáticas</p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Backups Table -->
|
|
|
- <div x-show="!loadingList && backups.length > 0" class="flex-1 overflow-auto">
|
|
|
- <table class="w-full text-sm">
|
|
|
- <thead class="bg-gray-50 sticky top-0">
|
|
|
- <tr>
|
|
|
- <th class="text-left px-4 py-3 text-xs font-semibold text-gray-500 uppercase tracking-wide">Archivo</th>
|
|
|
- <th class="text-left px-4 py-3 text-xs font-semibold text-gray-500 uppercase tracking-wide">Fecha</th>
|
|
|
- <th class="text-right px-4 py-3 text-xs font-semibold text-gray-500 uppercase tracking-wide">Tamaño</th>
|
|
|
- <th class="text-center px-4 py-3 text-xs font-semibold text-gray-500 uppercase tracking-wide">Tipo</th>
|
|
|
- <th class="text-center px-4 py-3 text-xs font-semibold text-gray-500 uppercase tracking-wide">Acción</th>
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody class="divide-y divide-gray-50">
|
|
|
- <template x-for="(backup, idx) in backups" :key="backup.filename">
|
|
|
- <tr class="hover:bg-gray-50 transition-colors"
|
|
|
- :class="idx === 0 ? 'bg-emerald-50/40' : ''">
|
|
|
- <td class="px-4 py-3">
|
|
|
- <div class="flex items-center gap-2">
|
|
|
- <i class="fas fa-file-archive text-blue-400 text-xs"></i>
|
|
|
- <span class="font-medium text-gray-700 truncate max-w-[140px]" x-text="backup.filename" :title="backup.filename"></span>
|
|
|
- <template x-if="idx === 0">
|
|
|
- <span class="inline-flex items-center gap-1 bg-emerald-100 text-emerald-700 text-xs font-semibold px-1.5 py-0.5 rounded">
|
|
|
- <i class="fas fa-star text-xs"></i> Reciente
|
|
|
- </span>
|
|
|
- </template>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- <td class="px-4 py-3 text-gray-500 whitespace-nowrap" x-text="backup.created_at"></td>
|
|
|
- <td class="px-4 py-3 text-right text-gray-600 font-mono whitespace-nowrap" x-text="backup.size_human"></td>
|
|
|
- <td class="px-4 py-3 text-center">
|
|
|
- <span :class="backup.type === 'auto' ? 'bg-blue-100 text-blue-700' : 'bg-purple-100 text-purple-700'"
|
|
|
- class="inline-flex items-center gap-1 text-xs font-semibold px-2 py-0.5 rounded-full">
|
|
|
- <i :class="backup.type === 'auto' ? 'fas fa-robot' : 'fas fa-hand-paper'" class="text-xs"></i>
|
|
|
- <span x-text="backup.type === 'auto' ? 'Auto' : 'Manual'"></span>
|
|
|
- </span>
|
|
|
- </td>
|
|
|
- <td class="px-4 py-3 text-center">
|
|
|
- <div class="flex items-center justify-center gap-1">
|
|
|
- <a :href="'/admin/backup/download/' + backup.filename"
|
|
|
- class="inline-flex items-center gap-1 bg-blue-50 hover:bg-blue-100 text-blue-700 text-xs font-medium px-2.5 py-1.5 rounded-lg transition-colors"
|
|
|
- title="Descargar">
|
|
|
- <i class="fas fa-download"></i>
|
|
|
- </a>
|
|
|
- <button @click="deleteBackup(backup.filename)"
|
|
|
- class="inline-flex items-center gap-1 bg-red-50 hover:bg-red-100 text-red-600 text-xs font-medium px-2.5 py-1.5 rounded-lg transition-colors"
|
|
|
- title="Eliminar">
|
|
|
- <i class="fas fa-trash"></i>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- </template>
|
|
|
- </tbody>
|
|
|
- </table>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- Footer note -->
|
|
|
- <div x-show="!loadingList && backups.length > 0" class="px-6 py-3 bg-gray-50 border-t border-gray-100">
|
|
|
- <p class="text-xs text-gray-400 flex items-center gap-1">
|
|
|
- <i class="fas fa-info-circle"></i>
|
|
|
- Máximo 3 salvas por período. Las más antiguas se eliminan automáticamente.
|
|
|
- </p>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-</div>
|
|
|
-
|
|
|
-<script>
|
|
|
-function backupManager() {
|
|
|
- return {
|
|
|
- config: {
|
|
|
- db_type: '{{ current_config.db_type | default("sqlite") }}',
|
|
|
- frequency: '{{ current_config.frequency | default("daily_weekly") }}',
|
|
|
- backup_dir: '{{ current_config.backup_dir | default("/opt/SquidStats/backups") }}',
|
|
|
- enabled: {{ 'true' if current_config.enabled | default(false) else 'false' }},
|
|
|
- },
|
|
|
- backups: [],
|
|
|
- loadingList: false,
|
|
|
- loadingSave: false,
|
|
|
- loadingManual: false,
|
|
|
- statusMsg: '',
|
|
|
- statusType: 'success',
|
|
|
-
|
|
|
- get lastBackupDate() {
|
|
|
- if (!this.backups.length) return 'Sin salvas';
|
|
|
- return this.backups[0].created_at;
|
|
|
- },
|
|
|
- get totalSize() {
|
|
|
- const total = this.backups.reduce((acc, b) => acc + (b.size_bytes || 0), 0);
|
|
|
- return this.formatBytes(total);
|
|
|
- },
|
|
|
- formatBytes(bytes) {
|
|
|
- if (!bytes) return '0 B';
|
|
|
- const k = 1024;
|
|
|
- const sizes = ['B', 'KB', 'MB', 'GB'];
|
|
|
- const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
|
- return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
|
|
|
- },
|
|
|
- onDbTypeChange() {
|
|
|
- if (this.config.db_type !== 'sqlite') {
|
|
|
- this.showStatus('Este motor de BD aún no está implementado.', 'error');
|
|
|
- setTimeout(() => { this.config.db_type = 'sqlite'; }, 1500);
|
|
|
- }
|
|
|
- },
|
|
|
- showStatus(msg, type = 'success') {
|
|
|
- this.statusMsg = msg;
|
|
|
- this.statusType = type;
|
|
|
- setTimeout(() => { this.statusMsg = ''; }, 4000);
|
|
|
- },
|
|
|
- async loadBackups() {
|
|
|
- this.loadingList = true;
|
|
|
- try {
|
|
|
- const resp = await fetch('/admin/backup/list', {
|
|
|
- headers: { 'X-CSRFToken': document.querySelector('meta[name="csrf-token"]').content }
|
|
|
- });
|
|
|
- const data = await resp.json();
|
|
|
- if (data.status === 'success') {
|
|
|
- this.backups = data.backups || [];
|
|
|
- } else {
|
|
|
- this.showStatus(data.message || 'Error al cargar salvas', 'error');
|
|
|
- }
|
|
|
- } catch (e) {
|
|
|
- this.showStatus('Error de conexión al cargar salvas', 'error');
|
|
|
- } finally {
|
|
|
- this.loadingList = false;
|
|
|
- }
|
|
|
- },
|
|
|
- async saveConfig() {
|
|
|
- this.loadingSave = true;
|
|
|
- try {
|
|
|
- const resp = await fetch('/admin/backup/config', {
|
|
|
- method: 'POST',
|
|
|
- headers: {
|
|
|
- 'Content-Type': 'application/json',
|
|
|
- 'X-CSRFToken': document.querySelector('meta[name="csrf-token"]').content
|
|
|
- },
|
|
|
- body: JSON.stringify(this.config)
|
|
|
- });
|
|
|
- const data = await resp.json();
|
|
|
- this.showStatus(data.message, data.status === 'success' ? 'success' : 'error');
|
|
|
- } catch (e) {
|
|
|
- this.showStatus('Error al guardar la configuración', 'error');
|
|
|
- } finally {
|
|
|
- this.loadingSave = false;
|
|
|
- }
|
|
|
- },
|
|
|
- async triggerManualBackup() {
|
|
|
- this.loadingManual = true;
|
|
|
- try {
|
|
|
- const resp = await fetch('/admin/backup/run', {
|
|
|
- method: 'POST',
|
|
|
- headers: {
|
|
|
- 'X-CSRFToken': document.querySelector('meta[name="csrf-token"]').content
|
|
|
- }
|
|
|
- });
|
|
|
- const data = await resp.json();
|
|
|
- this.showStatus(data.message, data.status === 'success' ? 'success' : 'error');
|
|
|
- if (data.status === 'success') await this.loadBackups();
|
|
|
- } catch (e) {
|
|
|
- this.showStatus('Error al ejecutar la salva', 'error');
|
|
|
- } finally {
|
|
|
- this.loadingManual = false;
|
|
|
- }
|
|
|
- },
|
|
|
- async deleteBackup(filename) {
|
|
|
- if (!confirm(`¿Eliminar la salva "${filename}"?`)) return;
|
|
|
- try {
|
|
|
- const resp = await fetch('/admin/backup/delete/' + encodeURIComponent(filename), {
|
|
|
- method: 'DELETE',
|
|
|
- headers: {
|
|
|
- 'X-CSRFToken': document.querySelector('meta[name="csrf-token"]').content
|
|
|
- }
|
|
|
- });
|
|
|
- const data = await resp.json();
|
|
|
- this.showStatus(data.message, data.status === 'success' ? 'success' : 'error');
|
|
|
- if (data.status === 'success') await this.loadBackups();
|
|
|
- } catch (e) {
|
|
|
- this.showStatus('Error al eliminar la salva', 'error');
|
|
|
- }
|
|
|
- },
|
|
|
- init() {
|
|
|
- this.loadBackups();
|
|
|
- }
|
|
|
- }
|
|
|
-}
|
|
|
-</script>
|
|
|
-{% endblock %}
|