#8604: TicketFuture to VnTable #1395

Merged
jon merged 13 commits from 8604-FixTicketFuture into dev 2025-02-14 12:14:00 +00:00
1 changed files with 4 additions and 12 deletions
Showing only changes of commit 04ef8e1886 - Show all commits

View File

@ -188,12 +188,8 @@ watch(
destinationElRef.value.setAttribute('colspan', '7'); destinationElRef.value.setAttribute('colspan', '7');
originElRef.value.setAttribute('colspan', '9'); originElRef.value.setAttribute('colspan', '9');
destinationElRef.value.textContent = `${t( originElRef.value.textContent = `${t('advanceTickets.origin')}`;
'advanceTickets.origin', destinationElRef.value.textContent = `${t('advanceTickets.destination')}`;
)} ${toDateTimeFormat(vnTableRef.value.params.dateToAdvance)}`;
originElRef.value.textContent = `${t('advanceTickets.destination')} ${toDateTimeFormat(
vnTableRef.value.params.dateFuture,
)}`;
newRow.append(destinationElRef.value, originElRef.value); newRow.append(destinationElRef.value, originElRef.value);
head.insertBefore(newRow, firstRow); head.insertBefore(newRow, firstRow);
@ -205,12 +201,8 @@ watch(
() => vnTableRef.value.params, () => vnTableRef.value.params,
() => { () => {
if (originElRef.value && destinationElRef.value) { if (originElRef.value && destinationElRef.value) {
destinationElRef.value.textContent = `${t( destinationElRef.value.textContent = `${t('advanceTickets.origin')}`;
'advanceTickets.origin', originElRef.value.textContent = `${t('advanceTickets.destination')}`;
)} ${toDateTimeFormat(vnTableRef.value.params.dateToAdvance)}`;
originElRef.value.textContent = `${t('advanceTickets.origin')} ${toDateTimeFormat(
vnTableRef.value.params.dateFuture,
)}`;
} }
}, },
{ deep: true }, { deep: true },