From 8c5b33877159c09fe8cc6001ffdd275ee1067407 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 25 Mar 2023 22:46:22 +0100 Subject: [PATCH] Disallow using project importer when not logged in Closes #1120 --- frontend/src/locales/en.json | 1 + frontend/src/pages/tools/importer.vue | 5 ++++- frontend/src/types/generated/icons.d.ts | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json index 534003906..731feb9f3 100644 --- a/frontend/src/locales/en.json +++ b/frontend/src/locales/en.json @@ -904,6 +904,7 @@ }, "importer": { "title": "Import Projects", + "notLoggedIn": "You need to be logged in to use the project importer.", "step1": { "title": "Intro", "text1": "This page allows you to import projects from other platforms.", diff --git a/frontend/src/pages/tools/importer.vue b/frontend/src/pages/tools/importer.vue index 6603b3fb9..4ad5d966d 100644 --- a/frontend/src/pages/tools/importer.vue +++ b/frontend/src/pages/tools/importer.vue @@ -178,14 +178,17 @@ function createProject(project: NewProjectForm) { }); } +const loggedIn = useAuthStore().user !== null; + useHead(useSeo(t("importer.title"), null, route, null));