Browse Source

Enable clear annotation button for any project type

pull/1115/head
Hironsan 4 years ago
parent
commit
7f750687b4
2 changed files with 5 additions and 5 deletions
  1. 5
      frontend/components/containers/annotation/EntityItemBox.vue
  2. 5
      frontend/layouts/annotation.vue

5
frontend/components/containers/annotation/EntityItemBox.vue

@ -1,6 +1,5 @@
<template> <template>
<div> <div>
<clear-annotations-button />
<entity-item-box <entity-item-box
v-if="isReady" v-if="isReady"
:labels="items" :labels="items"
@ -15,13 +14,11 @@
<script> <script>
import { mapActions, mapGetters, mapState } from 'vuex' import { mapActions, mapGetters, mapState } from 'vuex'
import ClearAnnotationsButton from '@/components/containers/annotation/ClearAnnotationsButton.vue'
import EntityItemBox from '~/components/organisms/annotation/EntityItemBox' import EntityItemBox from '~/components/organisms/annotation/EntityItemBox'
export default { export default {
components: { components: {
EntityItemBox,
ClearAnnotationsButton
EntityItemBox
}, },
computed: { computed: {

5
frontend/layouts/annotation.vue

@ -39,6 +39,7 @@
v-model="filterOption" v-model="filterOption"
/> />
<guideline-button /> <guideline-button />
<clear-annotations-button />
</v-col> </v-col>
<v-spacer /> <v-spacer />
<v-col> <v-col>
@ -73,6 +74,7 @@
<script> <script>
import { mapActions, mapGetters, mapState, mapMutations } from 'vuex' import { mapActions, mapGetters, mapState, mapMutations } from 'vuex'
import BottomNavigator from '@/components/containers/annotation/BottomNavigator' import BottomNavigator from '@/components/containers/annotation/BottomNavigator'
import ClearAnnotationsButton from '@/components/containers/annotation/ClearAnnotationsButton.vue'
import GuidelineButton from '@/components/containers/annotation/GuidelineButton' import GuidelineButton from '@/components/containers/annotation/GuidelineButton'
import MetadataBox from '@/components/organisms/annotation/MetadataBox' import MetadataBox from '@/components/organisms/annotation/MetadataBox'
import FilterButton from '@/components/containers/annotation/FilterButton' import FilterButton from '@/components/containers/annotation/FilterButton'
@ -92,7 +94,8 @@ export default {
GuidelineButton, GuidelineButton,
FilterButton, FilterButton,
ApproveButton, ApproveButton,
MetadataBox
MetadataBox,
ClearAnnotationsButton
}, },
fetch() { fetch() {

Loading…
Cancel
Save