v2.5.0: clarify encrypted restore in admin

This commit is contained in:
Виталий Литвинов
2026-04-25 14:51:10 +03:00
parent d492e5eb69
commit 817ea9ab9f
2 changed files with 4 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ const i18n = {
main: "main",
createBackup: "Create backup",
restoreBackup: "Restore",
encryptedRestoreCli: "Encrypted backups are restored from CLI",
backupScheduleTitle: "Automatic backups",
backupScheduleLoading: "Loading schedule...",
backupIncludesTitle: "Backup contents",
@@ -293,6 +294,7 @@ const i18n = {
main: "основной",
createBackup: "Создать бекап",
restoreBackup: "Восстановить",
encryptedRestoreCli: "Зашифрованные бекапы восстанавливаются через CLI",
backupScheduleTitle: "Автобекапы",
backupScheduleLoading: "Загрузка расписания...",
backupIncludesTitle: "Что входит в бекап",
@@ -1166,7 +1168,7 @@ function renderBackups(backups) {
</div>
<div class="backup-actions">
<span>${escapeHtml(fmtBytes(item.size))}${item.encrypted ? ` · ${escapeHtml(t("encrypted"))}` : ""}</span>
<button class="soft" data-restore-backup="${escapeAttr(item.name)}">${escapeHtml(t("restoreBackup"))}</button>
<button class="soft" data-restore-backup="${escapeAttr(item.name)}" ${item.encrypted ? "disabled" : ""} title="${escapeAttr(item.encrypted ? t("encryptedRestoreCli") : t("restoreBackup"))}">${escapeHtml(t("restoreBackup"))}</button>
</div>
</div>
`).join("");

View File

@@ -400,6 +400,6 @@
</div>
</div>
</div>
<script src="/app.js?v=2.5.0-admin9" type="module"></script>
<script src="/app.js?v=2.5.0-admin10" type="module"></script>
</body>
</html>