Skip to content

Commit

Permalink
Fix create corpus
Browse files Browse the repository at this point in the history
  • Loading branch information
arildm committed Sep 18, 2023
1 parent 89f284d commit 08e74a0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/corpora/CreateCorpus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 3 additions & 1 deletion src/corpora/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/corpus/createCorpus.composable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 08e74a0

Please sign in to comment.