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 @@
+
+
+ mdi-play-circle-outline
+
+ Start annotation
+
export default {
+ props: {
+ link: {
+ type: String,
+ default: '',
+ required: true
+ }
+ },
+
data() {
return {
items: [
@@ -40,6 +58,12 @@ export default {
{ icon: 'mdi-chart-bar', text: 'Statistics', link: 'statistics' }
]
}
+ },
+
+ computed: {
+ to() {
+ return `/projects/${this.$route.params.id}/${this.link}`
+ }
}
}
diff --git a/frontend/layouts/annotation.vue b/frontend/layouts/annotation.vue
index 58882b24..7cdd0329 100644
--- a/frontend/layouts/annotation.vue
+++ b/frontend/layouts/annotation.vue
@@ -12,7 +12,7 @@
clipped
color=""
>
-
+
@@ -20,6 +20,7 @@
diff --git a/frontend/layouts/project.vue b/frontend/layouts/project.vue
index c8e6f89d..aff34b4b 100644
--- a/frontend/layouts/project.vue
+++ b/frontend/layouts/project.vue
@@ -12,7 +12,7 @@
clipped
color=""
>
-
+
@@ -33,6 +33,7 @@
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',