pis #2

Merged
fred.boniface merged 76 commits from pis into main 2023-05-06 21:53:45 +01:00
1 changed files with 4 additions and 2 deletions
Showing only changes of commit be31d7d854 - Show all commits

View File

@ -140,9 +140,11 @@ async function displayService(svc) {
table.insertAdjacentHTML("beforeend", row) table.insertAdjacentHTML("beforeend", row)
// Display Operator // Display Operator
if (svc.operator) { if (svc.operator) {
var opRow = `<p class="msg op">A ${svc.operator} service</p>` var opRow = `<p class="msg op">A ${svc.operator} service`
if (svc.length) { if (svc.length) {
opRow += `, with ${svc.length} carriages`; opRow += ` with ${svc.length} carriages</p>`;
} else {
opRow += `</p>`
} }
table.insertAdjacentHTML("beforeend", opRow); table.insertAdjacentHTML("beforeend", opRow);
} }