diff options
| author | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-01-02 16:27:01 +0000 |
|---|---|---|
| committer | HJ <30-hj@users.noreply.git.pleroma.social> | 2023-01-02 16:27:01 +0000 |
| commit | 4361e15377bff93b9f5454264a2b2c7e21e81a8c (patch) | |
| tree | c4e6dda07604adeefa7d0edaf96a5fd37a2e069c /src | |
| parent | 3e4a8186a8368be1bc84053d6a6f494eda236739 (diff) | |
| parent | 78690cdf518390308624b4914dd9be06858822e1 (diff) | |
Merge branch 'tusooa/backup-state' into 'develop'
Display detailed backup state
See merge request pleroma/pleroma-fe!1715
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/settings_modal/tabs/data_import_export_tab.vue | 10 | ||||
| -rw-r--r-- | src/i18n/en.json | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/src/components/settings_modal/tabs/data_import_export_tab.vue b/src/components/settings_modal/tabs/data_import_export_tab.vue index e3b7f407..48356c9b 100644 --- a/src/components/settings_modal/tabs/data_import_export_tab.vue +++ b/src/components/settings_modal/tabs/data_import_export_tab.vue @@ -78,6 +78,16 @@ {{ $t('settings.download_backup') }} </a> <span + v-else-if="backup.state === 'running'" + > + {{ $tc('settings.backup_running', backup.processed_number, { number: backup.processed_number }) }} + </span> + <span + v-else-if="backup.state === 'failed'" + > + {{ $t('settings.backup_failed') }} + </span> + <span v-else > {{ $t('settings.backup_not_ready') }} diff --git a/src/i18n/en.json b/src/i18n/en.json index b91f0b10..1ee1147a 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -391,6 +391,8 @@ "account_backup_table_head": "Backup", "download_backup": "Download", "backup_not_ready": "This backup is not ready yet.", + "backup_running": "This backup is in progress, processed {number} record. | This backup is in progress, processed {number} records.", + "backup_failed": "This backup has failed.", "remove_backup": "Remove", "list_backups_error": "Error fetching backup list: {error}", "add_backup": "Create a new backup", |
