|
1 | 1 | <template> |
2 | 2 | <div class="flex flex-col w-full min-w-96"> |
3 | 3 | <div class="flex items-center mb-1"> |
4 | | - <h2 class="text-lg font-semibold dark:text-white">{{ job.name }}</h2> |
5 | | - <p class="ml-2 text-xs text-gray-600 dark:text-gray-200 h-full">{{ t('Created:') }} {{ getTimeAgoString(new Date(job.createdAt)) }}</p> |
| 4 | + <div class="flex flex-col items-start"> |
| 5 | + <h2 class="text-lg font-semibold dark:text-white">{{ job.name }}</h2> |
| 6 | + <Tooltip> |
| 7 | + <p class="text-xs text-gray-600 dark:text-gray-200 h-full">{{ t('Created:') }} {{ getTimeAgoString(new Date(job.createdAt)) }}</p> |
| 8 | + <template #tooltip> |
| 9 | + {{ t('Created at:') }} {{ new Date(job.createdAt).toLocaleString() }} |
| 10 | + </template> |
| 11 | + </Tooltip> |
| 12 | + </div> |
6 | 13 | <div class="ml-auto flex flex-col items-start"> |
7 | 14 | <div class="flex items-center"> |
8 | 15 | <p class=" text-gray-800 dark:text-white h-full"> {{ t('Progress:') }} <span class="font-semibold" >{{ job.progress }}%</span></p> |
9 | 16 | <StateToIcon :job="job" /> |
10 | 17 | </div> |
11 | | - <p class="text-xs text-gray-600 dark:text-gray-200 h-full" v-if="job.finishedAt"> {{ t('Finished:') }} {{ getTimeAgoString(new Date(job.finishedAt)) }}</p> |
| 18 | + <Tooltip v-if="job.finishedAt"> |
| 19 | + <p class="text-xs text-gray-600 dark:text-gray-200 h-full"> {{ t('Finished:') }} {{ getTimeAgoString(new Date(job.finishedAt)) }}</p> |
| 20 | + <template #tooltip> |
| 21 | + {{ t('Finished at:') }} {{ new Date(job.finishedAt).toLocaleString() }} |
| 22 | + </template> |
| 23 | + </Tooltip> |
12 | 24 | </div> |
13 | 25 | </div> |
14 | 26 | <div class="flex items-center gap-4 w-full"> |
|
40 | 52 |
|
41 | 53 | <script setup lang="ts"> |
42 | 54 | import type { IJob } from './utils'; |
43 | | -import { ProgressBar, Button } from '@/afcl'; |
| 55 | +import { ProgressBar, Button, Tooltip } from '@/afcl'; |
44 | 56 | import { getTimeAgoString, callAdminForthApi, getCustomComponent} from '@/utils'; |
45 | 57 | import { useI18n } from 'vue-i18n'; |
46 | 58 | import StateToIcon from './StateToIcon.vue'; |
|
0 commit comments