diff --git a/frontend/src/components/Admin/Backup/ImportSummaryDialog/index.vue b/frontend/src/components/Admin/Backup/ImportSummaryDialog/index.vue index 8714c6fea..4c2f8597d 100644 --- a/frontend/src/components/Admin/Backup/ImportSummaryDialog/index.vue +++ b/frontend/src/components/Admin/Backup/ImportSummaryDialog/index.vue @@ -45,7 +45,7 @@ \ No newline at end of file + diff --git a/frontend/src/components/Admin/Migration/MigrationCard.vue b/frontend/src/components/Admin/Migration/MigrationCard.vue index 8dad1af08..f0496caca 100644 --- a/frontend/src/components/Admin/Migration/MigrationCard.vue +++ b/frontend/src/components/Admin/Migration/MigrationCard.vue @@ -1,5 +1,6 @@ + {{ title }} @@ -67,6 +68,7 @@ import UploadBtn from "../../UI/UploadBtn"; import utils from "@/utils"; import { api } from "@/api"; +import MigrationDialog from "@/components/Admin/Migration/MigrationDialog.vue"; export default { props: { folder: String, @@ -76,6 +78,7 @@ export default { }, components: { UploadBtn, + MigrationDialog, }, data() { return { @@ -90,7 +93,8 @@ export default { async importMigration(file_name) { this.loading = true; let response = await api.migrations.import(this.folder, file_name); - this.$emit("imported", response.successful, response.failed); + this.$refs.migrationDialog.open(response); + // this.$emit("imported", response.successful, response.failed); this.loading = false; }, readableTime(timestamp) { diff --git a/frontend/src/components/Admin/Migration/MigrationDialog.vue b/frontend/src/components/Admin/Migration/MigrationDialog.vue new file mode 100644 index 000000000..a3ad890d1 --- /dev/null +++ b/frontend/src/components/Admin/Migration/MigrationDialog.vue @@ -0,0 +1,109 @@ + + + + + + + + + mdi-import + + + Migration Summary + + + + + + + + + {{ values.title }} + + Success: {{ values.success }} + Failed: {{ values.failure }} + + + + + + {{ $t("general.recipes") }} + + + + + + + + + + + + + + + + \ No newline at end of file