mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 11:39:01 +01: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(); | ||||
| 
 | ||||
|             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
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Adorian Doran
						Adorian Doran