mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +08:00
Handle the situation where no backups are available
This commit is contained in:
parent
32a4a9c072
commit
e94942d665
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user