adiciona modal para criação e edição de profiles; atualiza estilos e lógica de exibição

This commit is contained in:
Alexander Sabino
2026-05-08 19:27:19 +01:00
parent ef9ffdbe71
commit 11c58f0cfe
4 changed files with 112 additions and 62 deletions
+12
View File
@@ -510,6 +510,9 @@ class BackupService {
pushLog(`Arquivo gerado via helper: ${absoluteArchivePath}`, 'finalizando');
pushLog('Snapshot incremental salvo no diretorio de backup.', 'finalizando');
containerBackup.fileCount = Math.max(fileCurrent, fileTotal);
try { containerBackup.archiveSize = (await fs.stat(absoluteArchivePath)).size; } catch {}
onProgress({
containerName,
status: 'ok',
@@ -585,6 +588,9 @@ class BackupService {
}
}
containerBackup.fileCount = Math.max(fileCurrent, fileTotal);
try { containerBackup.archiveSize = (await fs.stat(absoluteArchivePath)).size; } catch {}
onProgress({
containerName,
status: 'ok',
@@ -655,6 +661,12 @@ class BackupService {
await this.dockerService.startContainer(containerId).catch(() => null);
}
containerBackup.fileCount = Math.max(fileCurrent, fileTotal);
try {
const hostArchivePath = path.join(profile.backupDir, ...archiveRelativePath.split('/'));
containerBackup.archiveSize = (await fs.stat(hostArchivePath)).size;
} catch {}
onProgress({
containerName,
status: 'ok',