From 19703fff36d7aa539fbcb731fa7490673a0ff444 Mon Sep 17 00:00:00 2001 From: Hironsan Date: Fri, 1 Nov 2019 10:07:22 +0900 Subject: [PATCH] Add annotation start button to the side bar --- .../organisms/layout/TheSideBar.vue | 24 +++++++++++++++++++ frontend/layouts/annotation.vue | 15 +++++++++++- frontend/layouts/project.vue | 24 +++++++++++++++---- frontend/store/projects.js | 11 +++++++++ 4 files changed, 69 insertions(+), 5 deletions(-) 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',