File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
components/identificationTasks
views/identification_task Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 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
1615import { formatLocalDateTime } from ' @/utils/DateUtils' ;
1716
1817defineProps <{
19- identificationTask : IdentificationTask
18+ review : IdentificationTaskReview | null
2019}>()
2120
2221 </script >
Original file line number Diff line number Diff line change 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" >
You can’t perform that action at this time.
0 commit comments