Skip to content

Commit

Permalink
✨ clear extra modes for mobile when changing mode
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 6, 2022
1 parent 4604d73 commit e515ded
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/pages/annotation/ControlPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@

<script setup>
import { useQuasar } from 'quasar'
import { computed } from 'vue'
import { computed, watch } from 'vue'
import { ObjectAnnotation, RegionAnnotation, SkeletonAnnotation } from '~/libs/annotationlib.js'
import utils from '~/libs/utils.js'
import { useAnnotationStore } from '~/store/annotation.js'
Expand Down Expand Up @@ -470,6 +470,15 @@ const indicatingMode = computed({
}
}
})
watch(() => annotationStore.mode,
() => {
annotationStore.delMode = false
annotationStore.copyMode = false
annotationStore.addPointMode = false
annotationStore.delPointMode = false
annotationStore.indicatingMode = false
}
)
// operation
const handleBulkClear = () => {
Expand Down

0 comments on commit e515ded

Please sign in to comment.