Browse Source

Enable to delete region from region list

pull/1899/head
Hironsan 2 years ago
parent
commit
6ea179fe25
5 changed files with 11 additions and 1 deletions
  1. 8
      frontend/components/tasks/image/RegionList.vue
  2. 1
      frontend/pages/demo/object-detection/index.vue
  3. 1
      frontend/pages/demo/segmentation/index.vue
  4. 1
      frontend/pages/projects/_id/object-detection/index.vue
  5. 1
      frontend/pages/projects/_id/segmentation/index.vue

8
frontend/components/tasks/image/RegionList.vue

@ -24,6 +24,11 @@
@change="$emit('change-visibility', item.id, $event)"
/>
</v-list-item-action>
<v-list-item-action>
<v-btn icon @click="$emit('delete-region', item.id)">
<v-icon>{{ mdiDelete }}</v-icon>
</v-btn>
</v-list-item-action>
</template>
</v-list-item>
</v-list-item-group>
@ -32,7 +37,7 @@
</template>
<script>
import { mdiEyeOutline, mdiEyeOffOutline } from '@mdi/js'
import { mdiEyeOutline, mdiEyeOffOutline, mdiDelete } from '@mdi/js'
export default {
props: {
@ -44,6 +49,7 @@ export default {
data() {
return {
mdiDelete,
mdiEyeOutline,
mdiEyeOffOutline,
model: null,

1
frontend/pages/demo/object-detection/index.vue

@ -47,6 +47,7 @@
class="mt-4"
:regions="regionList"
@change-visibility="changeVisibility"
@delete-region="deleteRectangle"
@hover-region="hoverRegion"
@unhover-region="unhoverRegion"
/>

1
frontend/pages/demo/segmentation/index.vue

@ -47,6 +47,7 @@
class="mt-4"
:regions="regionList"
@change-visibility="changeVisibility"
@delete-region="deletePolygon"
@hover-region="hoverRegion"
@unhover-region="unhoverRegion"
/>

1
frontend/pages/projects/_id/object-detection/index.vue

@ -69,6 +69,7 @@
class="mt-4"
:regions="regionList"
@change-visibility="changeVisibility"
@delete-region="remove"
@hover-region="hoverRegion"
@unhover-region="unhoverRegion"
/>

1
frontend/pages/projects/_id/segmentation/index.vue

@ -69,6 +69,7 @@
class="mt-4"
:regions="regionList"
@change-visibility="changeVisibility"
@delete-region="remove"
@hover-region="hoverRegion"
@unhover-region="unhoverRegion"
/>

Loading…
Cancel
Save