diff --git a/src/components/pages/HomePage.vue b/src/components/pages/HomePage.vue index 209c7607..5dedfc92 100644 --- a/src/components/pages/HomePage.vue +++ b/src/components/pages/HomePage.vue @@ -47,6 +47,7 @@ import ProjectManager from "@/logic/filesystem/project/ProjectManager"; import fs from "fs"; import InvalidProjectException from "@/logic/filesystem/project/InvalidProjectException"; import Tooltip from "unipept-web-components/src/components/custom/Tooltip.vue"; +import RecentProjectsManager from "@/logic/filesystem/project/RecentProjectsManager"; const { dialog } = require("electron").remote; @Component({ @@ -59,7 +60,6 @@ export default class HomePage extends Vue { private errorMessage: string = ""; private errorSnackbarVisible: boolean = false; - private async createProject() { const chosenPath: string | undefined = dialog.showOpenDialogSync({ properties: ["openDirectory"] @@ -76,6 +76,7 @@ export default class HomePage extends Vue { chosenPath[0], this.$store.getters.baseUrl ); + await project.initialize(); await this.$store.dispatch("setProject", project); await this.$router.push("/analysis/single"); diff --git a/src/components/project/RecentProjects.vue b/src/components/project/RecentProjects.vue index fd6e65ec..a3bd2cbd 100644 --- a/src/components/project/RecentProjects.vue +++ b/src/components/project/RecentProjects.vue @@ -1,29 +1,31 @@