You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
873 B

3 years ago
  1. <template>
  2. <v-tooltip bottom>
  3. <template #activator="{ on }">
  4. <v-btn
  5. v-shortkey.once="['enter']"
  6. icon
  7. v-on="on"
  8. @shortkey="$emit('click:review')"
  9. @click="$emit('click:review')"
  10. >
  11. <v-icon v-if="isReviewd">
  12. {{ mdiCheck }}
  13. </v-icon>
  14. <v-icon v-else>
  15. {{ mdiClose }}
  16. </v-icon>
  17. </v-btn>
  18. </template>
  19. <span v-if="isReviewd">{{ $t('annotation.checkedTooltip') }}</span>
  20. <span v-else>{{ $t('annotation.notCheckedTooltip') }}</span>
  21. </v-tooltip>
  22. </template>
  23. <script lang="ts">
  24. import Vue from 'vue'
  25. import { mdiClose, mdiCheck } from '@mdi/js'
  26. export default Vue.extend({
  27. props: {
  28. isReviewd: {
  29. type: Boolean,
  30. default: false,
  31. required: true
  32. }
  33. },
  34. data() {
  35. return {
  36. mdiClose,
  37. mdiCheck
  38. }
  39. }
  40. })
  41. </script>