diff --git a/src/corpora/CreateCorpus.vue b/src/corpora/CreateCorpus.vue index e05377f..84b2f3a 100644 --- a/src/corpora/CreateCorpus.vue +++ b/src/corpora/CreateCorpus.vue @@ -71,11 +71,11 @@ import useSpin from "@/spin/spin.composable"; import PendingContent from "@/spin/PendingContent.vue"; import { FORMATS_EXT } from "@/api/corpusConfig"; import { useAuth } from "@/auth/auth.composable"; -import useCorpora from "./corpora.composable"; +import useCreateCorpus from "@/corpus/createCorpus.composable"; import HelpBox from "@/components/HelpBox.vue"; const { requireAuthentication } = useAuth(); -const { createFromConfig } = useCorpora(); +const { createFromConfig } = useCreateCorpus(); const { t } = useI18n(); const { spin } = useSpin(); diff --git a/src/corpora/Dashboard.vue b/src/corpora/Dashboard.vue index 2cdfa78..c8aeabc 100644 --- a/src/corpora/Dashboard.vue +++ b/src/corpora/Dashboard.vue @@ -49,10 +49,12 @@ import HelpBox from "@/components/HelpBox.vue"; import useCorpora from "@/corpora/corpora.composable"; import { useCorpusStore } from "@/store/corpus.store"; import useSpin from "@/spin/spin.composable"; +import useCreateCorpus from "@/corpus/createCorpus.composable"; const corpusStore = useCorpusStore(); const { requireAuthentication, isAuthenticated } = useAuth(); -const { loadCorpora, createFromUpload } = useCorpora(); +const { loadCorpora } = useCorpora(); +const { createFromUpload } = useCreateCorpus(); const { spin } = useSpin(); requireAuthentication(loadCorpora); diff --git a/src/corpus/createCorpus.composable.js b/src/corpus/createCorpus.composable.js index d4d5fb2..e1d7f20 100644 --- a/src/corpus/createCorpus.composable.js +++ b/src/corpus/createCorpus.composable.js @@ -8,7 +8,7 @@ import useConfig from "./config/config.composable"; import useSources from "./sources/sources.composable"; import useCorpus from "./corpus.composable"; -export default function useCorpora() { +export default function useCreateCorpus() { const corpusStore = useCorpusStore(); const router = useRouter(); const { refreshJwt } = useAuth();