FIX des bugs du merge request 884

This commit is contained in:
Boris Waaub
2025-09-30 13:49:04 +00:00
committed by Julien Fastré
parent 056e2dcc5f
commit b43aeebc3c
15 changed files with 127 additions and 81 deletions

View File

@@ -21,12 +21,12 @@
<template #tbody>
<tr v-for="(t, i) in tasks.alert.results" :key="`task-alert-${i}`">
<td v-if="t.warningDate !== null">
{{ $d(new Date(t.warningDate.datetime), "short") }}
{{ localizeDateTimeFormat(t.warningDate, "short") }}
</td>
<td v-else />
<td>
<span class="outdated">{{
$d(new Date(t.endDate.datetime), "short")
localizeDateTimeFormat(t.endDate, "short")
}}</span>
</td>
<td>{{ t.title }}</td>
@@ -62,10 +62,10 @@
<tr v-for="(t, i) in tasks.warning.results" :key="`task-warning-${i}`">
<td>
<span class="outdated">{{
$d(new Date(t.warningDate.datetime), "short")
localizeDateTimeFormat(t.warningDate, "short")
}}</span>
</td>
<td>{{ $d(new Date(t.endDate.datetime), "short") }}</td>
<td>{{ localizeDateTimeFormat(t.endDate, "short") }}</td>
<td>{{ t.title }}</td>
<td>
<a class="btn btn-sm btn-show" :href="getUrl(t)">
@@ -94,6 +94,7 @@ import {
} from "translator";
import { TasksState } from "./store/modules/homepage";
import { Alert, Warning } from "ChillPersonAssets/types";
import { localizeDateTimeFormat } from "ChillMainAssets/lib/localizationHelper/localizationHelper";
const store = useStore();