From 9c011b641632dcdd7b849f8f4cf3fff67b3f3492 Mon Sep 17 00:00:00 2001 From: smanylov Date: Wed, 13 May 2026 12:15:11 +0700 Subject: [PATCH] rename opened document history --- .../tracking-page/tracking-history-view.tsx | 24 +++++++++++++++---- src/i18n/messages/en.json | 9 ++++++- src/i18n/messages/ru.json | 9 ++++++- 3 files changed, 35 insertions(+), 7 deletions(-) diff --git a/src/app/ui/tracking-page/tracking-history-view.tsx b/src/app/ui/tracking-page/tracking-history-view.tsx index c2f4ed5..584eb48 100644 --- a/src/app/ui/tracking-page/tracking-history-view.tsx +++ b/src/app/ui/tracking-page/tracking-history-view.tsx @@ -63,6 +63,16 @@ export function TrackingHistoryView() { return nameWithoutExtension.substring(0, maxNameLength) + '...'; } + const editLocationName = (location: string | undefined | null, place: 'city' | 'country') => { + let notDefinedPlace = (place === 'city') ? t('not-defined-city') : t('not-defined-country'); + location === 'UNKNOWN' ? notDefinedPlace : location; + let response = notDefinedPlace; + if (location !== 'UNKNOWN' && location !== undefined && location !== null) { + response = location; + } + return response; + } + const columns = useMemo[]>( () => [ { @@ -103,7 +113,7 @@ export function TrackingHistoryView() { header: ({ column }) => (
- Дата / время + {t('date')} / {t('time')}