Handle the situation where no backups are available

This commit is contained in:
Adorian Doran 2024-11-19 20:22:10 +02:00
parent 32a4a9c072
commit e94942d665

View File

@ -95,7 +95,13 @@ export default class BackupOptions extends OptionsWidget {
this.$existingBackupList.empty();
if (!backupFiles.length) {
backupFiles = [{filePath: t('backup.no_backup_yet'), mtime: ''}];
this.$existingBackupList.append($(`
<tr>
<td colspan="2">${t('backup.no_backup_yet')}</td>
</tr>
`));
return;
}
// Sort the backup files by modification date & time in a desceding order