diff --git a/frontend/components/organisms/layout/TheSideBar.vue b/frontend/components/organisms/layout/TheSideBar.vue index 082a1a1f..29cf6d75 100644 --- a/frontend/components/organisms/layout/TheSideBar.vue +++ b/frontend/components/organisms/layout/TheSideBar.vue @@ -1,5 +1,15 @@ diff --git a/frontend/store/projects.js b/frontend/store/projects.js index 930523a6..428a65bb 100644 --- a/frontend/store/projects.js +++ b/frontend/store/projects.js @@ -31,6 +31,17 @@ export const getters = { } ] }, + getLink(state) { + if (state.current.project_type === 'DocumentClassification') { + return 'text-classification' + } else if (state.current.project_type === 'SequenceLabeling') { + return 'sequence-labeling' + } else if (state.current.project_type === 'Seq2seq') { + return 'sequence-to-sequence' + } else { + return '' + } + }, getImportFormat(state) { const plain = { type: 'plain',