Skip to content

Commit dca3b1e

Browse files
committed
Enable to show filter and approve button on text classification and sequence to sequence pages
1 parent 7465609 commit dca3b1e

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

frontend/pages/projects/_id/sequence-to-sequence/index.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
no-gutters
66
class="d-none d-sm-flex"
77
>
8-
<v-col>
8+
<v-col v-if="currentDoc">
9+
<approve-button :approved="approved" />
10+
<filter-button />
911
<guideline-button />
1012
</v-col>
1113
<v-spacer />
@@ -34,21 +36,25 @@ import Seq2seqContainer from '~/components/containers/annotation/Seq2seqContaine
3436
import Paginator from '~/components/containers/annotation/Paginator'
3537
import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
3638
import MetadataBox from '@/components/organisms/annotation/MetadataBox'
39+
import FilterButton from '@/components/containers/annotation/FilterButton'
40+
import ApproveButton from '@/components/containers/annotation/ApproveButton'
3741
3842
export default {
3943
layout: 'annotation',
4044
4145
middleware: ['check-auth', 'auth'],
4246
4347
components: {
48+
ApproveButton,
49+
FilterButton,
4450
Seq2seqContainer,
4551
Paginator,
4652
GuidelineButton,
4753
MetadataBox
4854
},
4955
5056
computed: {
51-
...mapGetters('documents', ['currentDoc'])
57+
...mapGetters('documents', ['currentDoc', 'approved'])
5258
},
5359
5460
validate({ params }) {

frontend/pages/projects/_id/text-classification/index.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
no-gutters
66
class="d-none d-sm-flex"
77
>
8-
<v-col>
8+
<v-col v-if="currentDoc">
9+
<approve-button :approved="approved" />
10+
<filter-button />
911
<guideline-button />
1012
</v-col>
1113
<v-spacer />
@@ -34,21 +36,25 @@ import TextClassification from '~/components/containers/annotation/TextClassific
3436
import Paginator from '~/components/containers/annotation/Paginator'
3537
import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
3638
import MetadataBox from '@/components/organisms/annotation/MetadataBox'
39+
import FilterButton from '@/components/containers/annotation/FilterButton'
40+
import ApproveButton from '@/components/containers/annotation/ApproveButton'
3741
3842
export default {
3943
layout: 'annotation',
4044
4145
middleware: ['check-auth', 'auth'],
4246
4347
components: {
48+
ApproveButton,
49+
FilterButton,
4450
TextClassification,
4551
Paginator,
4652
GuidelineButton,
4753
MetadataBox
4854
},
4955
5056
computed: {
51-
...mapGetters('documents', ['currentDoc'])
57+
...mapGetters('documents', ['currentDoc', 'approved'])
5258
},
5359
5460
validate({ params }) {

0 commit comments

Comments
 (0)