mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 00:06:30 +01:00
Handle the situation where no backups are available
This commit is contained in:
@@ -95,7 +95,13 @@ export default class BackupOptions extends OptionsWidget {
|
|||||||
this.$existingBackupList.empty();
|
this.$existingBackupList.empty();
|
||||||
|
|
||||||
if (!backupFiles.length) {
|
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
|
// Sort the backup files by modification date & time in a desceding order
|
||||||
|
|||||||
Reference in New Issue
Block a user