From 75941de449014c02012bd4890c8fe68b1d4efef6 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Tue, 19 Nov 2024 17:42:03 +0200 Subject: [PATCH] Replace the "Existing backups" bulleted list with a table --- .../widgets/type_widgets/options/backup.js | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/type_widgets/options/backup.js b/src/public/app/widgets/type_widgets/options/backup.js index fc3c070a4..1cdfddad9 100644 --- a/src/public/app/widgets/type_widgets/options/backup.js +++ b/src/public/app/widgets/type_widgets/options/backup.js @@ -42,7 +42,17 @@ const TPL = `

${t('backup.existing_backups')}

- + + + + + + + + + +
Date and timePath
+
`; @@ -73,7 +83,7 @@ export default class BackupOptions extends OptionsWidget { this.$monthlyBackupEnabled.on('change', () => this.updateCheckboxOption('monthlyBackupEnabled', this.$monthlyBackupEnabled)); - this.$existingBackupList = this.$widget.find(".existing-backup-list"); + this.$existingBackupList = this.$widget.find(".existing-backup-list-items"); } optionsLoaded(options) { @@ -89,7 +99,12 @@ export default class BackupOptions extends OptionsWidget { } for (const {filePath, mtime} of backupFiles) { - this.$existingBackupList.append($("
  • ").text(`${filePath} ${mtime ? ` - ${mtime}` : ''}`)); + this.$existingBackupList.append($(` + + ${(mtime) ? mtime : "-"} + ${filePath} + + `)); } }); }