Feature/restore backup inform about missing sources (#523)

* Validate backup before starting restore process

In case sources were missing, the user was never informed and thus, did not know which sources were required for all manga to work

* Reset file input after restoring

Otherwise, the same backup file can't be restored until the page gets refreshed/re-opened
This commit is contained in:
schroda
2023-12-28 16:08:13 +01:00
committed by GitHub
parent a1dca02fea
commit 120e97e882
2 changed files with 156 additions and 29 deletions

View File

@@ -258,6 +258,7 @@
"popular": "Popular",
"reset": "Reset",
"reset_to_default": "Reset to Default",
"restore": "Restore",
"resume": "Resume",
"select": "Select",
"select_all": "Select all",
@@ -617,6 +618,44 @@
}
},
"backup": {
"action": {
"create": {
"label": {
"description": "Back up library as a Tachiyomi backup",
"title": "Create backup"
}
},
"restore": {
"button": "Restore",
"error": {
"label": {
"failure": "Could not restore backup",
"legacy_backup_unsupported": "legacy backups are not supported!"
}
},
"label": {
"description": "You can also drag and drop the backup file here to restore it",
"in_progress": "Restoring backup…",
"success": "Backup restored.",
"title": "Restore Backup"
}
},
"validate": {
"dialog": {
"content": {
"label": {
"missing_sources": "The following sources are not installed:"
}
},
"title": "Backup validation"
},
"error": {
"label": {
"failure": "Could not validate backup"
}
}
}
},
"automated": {
"cleanup": {
"label": {
@@ -635,16 +674,6 @@
}
}
},
"label": {
"backup_restore_failed": "Could not restore backup",
"create_backup": "Create backup",
"create_backup_info": "Back up library as a Tachiyomi backup",
"legacy_backup_unsupported": "legacy backups are not supported!",
"restore_backup": "Restore Backup",
"restore_backup_info": "You can also drag and drop the backup file here to restore it",
"restored_backup": "Backup restored.",
"restoring_backup": "Restoring backup…"
},
"title": "Backup"
},
"clear_cache": {