diff --git a/src/components/account/Login.vue b/src/components/account/Login.vue index 63838514..d6859668 100644 --- a/src/components/account/Login.vue +++ b/src/components/account/Login.vue @@ -124,8 +124,8 @@ export default { this.loading = true; await this.activateNewUser(); this.loading = false; - console.log("activation status:" + this.activate_status); - console.log("activation errors:" + this.errors.other_errors); + console.log("activation status: " + this.activate_status); + console.log("activation errors: " + this.errors.other_errors); } }, methods: { diff --git a/src/components/collections/CollectionDetails.vue b/src/components/collections/CollectionDetails.vue deleted file mode 100644 index 8f84df80..00000000 --- a/src/components/collections/CollectionDetails.vue +++ /dev/null @@ -1,132 +0,0 @@ - - - - diff --git a/src/components/collections/CollectionDetailsItemCard.vue b/src/components/collections/CollectionDetailsItemCard.vue deleted file mode 100644 index d9138e92..00000000 --- a/src/components/collections/CollectionDetailsItemCard.vue +++ /dev/null @@ -1,192 +0,0 @@ - - - - diff --git a/src/components/collections/Collections.vue b/src/components/collections/Collections.vue deleted file mode 100644 index 6f0d8899..00000000 --- a/src/components/collections/Collections.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/router.js b/src/router.js index 50f25d8d..67800dfa 100644 --- a/src/router.js +++ b/src/router.js @@ -14,7 +14,6 @@ import BatchIngest from "./components/batch/BatchIngest.vue"; import TranscriptEditor from "./components/hmgm/TranscriptEditor.vue"; import NerEditor from "./components/hmgm/NerEditor.vue"; import { accountService } from "./service/account-service.js"; -import CollectionDetails from "./components/collections/CollectionDetails.vue"; import { env } from "./helpers/env.js"; import WorkflowList from "./components/workflow/WorkflowList.vue"; import EntityList from "./components/entity/EntityList.vue"; @@ -24,7 +23,6 @@ import TestResultsVisualiz from "./components/evaluation/TestResultsVisualiz.vue import SupplementList from "./components/supplement/SupplementList.vue"; import AccessDenied from "./components/shared/AccessDenied.vue"; import HomePage from "@/components/home"; - import store from "./store/amp-store.js"; Vue.use(Router); @@ -448,29 +446,10 @@ var router = new Router({ meta: { helpUrl: env.getEnv("VUE_APP_DOC_AMP_USER_GUIDE"), } - }, - // TODO: below is probably not used and shall be removed - { - path: "/collections/collection-details", - name: "collection-details", - component: CollectionDetails, - meta: { - authorize: { - actionType: env.getEnv("VUE_APP_AC_ACTIONTYPE_READ"), - targetType: env.getEnv("VUE_APP_AC_TARGETTYPE_COLLECTION") - }, - helpUrl: env.getEnv("VUE_APP_DOC_AMP_USER_GUIDE"), - }, - }, - // TODO: end above + }, ], }); -export default router; - -const currentUser = accountService.currentUserValue; -if (!currentUser) router.push("/"); - router.beforeEach(async (to, from, next) => { // redirect to login page if not logged in and trying to access a restricted page const { authorize } = to.meta; @@ -513,3 +492,5 @@ router.beforeEach(async (to, from, next) => { } } }); + +export default router;