diff --git a/dashboard/public/translation/en.json b/dashboard/public/translation/en.json index dd63f5215..328614725 100644 --- a/dashboard/public/translation/en.json +++ b/dashboard/public/translation/en.json @@ -1900,7 +1900,7 @@ "title": "Archive", "description": "The latest app backup will be added to the App Archive. The app will be uninstalled, but can be restored from the Backups View. Other backups will be cleaned up based on the backup policy.", "action": "Archive", - "latestBackupInfo": "The last backup was created at {{date}}.", + "latestBackupInfo": "The last backup was created on {{siteName}} at {{date}}.", "noBackup": "This app has no backup. Archiving requires a recent backup." }, "archiveDialog": { diff --git a/dashboard/src/components/app/Uninstall.vue b/dashboard/src/components/app/Uninstall.vue index ac1a9027f..ea6d835e7 100644 --- a/dashboard/src/components/app/Uninstall.vue +++ b/dashboard/src/components/app/Uninstall.vue @@ -91,10 +91,17 @@ async function onArchive() { } onMounted(async () => { - const [error, result] = await appsModel.backups(props.app.id); + let [error, result] = await appsModel.backups(props.app.id); if (error) return console.error(error); latestBackup.value = result[0] || null; + + if (latestBackup.value) { + [error, result] = await appsModel.listBackupSites(props.app.id); + if (error) return console.error(error); + + latestBackup.value.siteName = result.find((s) => s.id === latestBackup.value.siteId).name; + } }); @@ -120,7 +127,7 @@ onMounted(async () => {
-

+