Skip to content

Commit 8ba77ee

Browse files
committed
Use IdentificationTaskReview instead of IdentificationTask
1 parent a0b879e commit 8ba77ee

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
<template>
2-
<Tag :severity="identificationTask.review ? 'info' : 'warn'"
3-
:value="identificationTask.review ? formatLocalDateTime(identificationTask.review.created_at) : 'Not reviewed'"
4-
v-tooltip.bottom="identificationTask.review ? 'Review datetime' : undefined">
2+
<Tag :severity="review ? 'info' : 'warn'" :value="review ? formatLocalDateTime(review.created_at) : 'Not reviewed'"
3+
v-tooltip.bottom="review ? 'Review datetime' : undefined">
54
<template #icon>
65
<span class="material-symbols-outlined p-tag-icon">
7-
{{ identificationTask.review ? 'verified' : 'verified_off' }}
6+
{{ review ? 'verified' : 'verified_off' }}
87
</span>
98
</template>
109
</Tag>
1110
</template>
1211

1312
<script setup lang="ts">
14-
import type { IdentificationTask } from 'mosquito-alert';
13+
import type { IdentificationTaskReview } from 'mosquito-alert';
1514
1615
import { formatLocalDateTime } from '@/utils/DateUtils';
1716
1817
defineProps<{
19-
identificationTask: IdentificationTask
18+
review: IdentificationTaskReview | null
2019
}>()
2120
2221
</script>

src/views/identification_task/DetailView.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</div>
1212

1313
<div class="flex items-center mb-4 gap-2">
14-
<IdentificationTaskReviewTag v-if="identificationTask" :identification-task="identificationTask" />
14+
<IdentificationTaskReviewTag v-if="identificationTask" :review="identificationTask.review" />
1515
<Tag v-if='identificationTask?.is_safe' icon="pi pi-shield" value='Safe content' severity="success" />
1616
<Tag v-if='identificationTask?.is_flagged' icon="pi pi-flag" value='Flagged' severity="danger" />
1717
<div class="ml-auto text-surface-400 dark:text-surface-400 flex flex-col">

0 commit comments

Comments
 (0)