Merge branch 'temp-branch' into Dev

This commit is contained in:
ISA
2024-06-26 10:40:51 +02:00
2 changed files with 19 additions and 21 deletions

View File

@@ -2179,25 +2179,21 @@ const MapComponent = ({ locations, onLocationUpdate, lineCoordinates }) => {
if (matchingLine) {
colorsByModule[matchingLine.idModul] = stat.PrioColor;
newTooltipContents[matchingLine.idModul] = `
<div class="bg-white rounded-lg m-0 p-2 ">
<span class="text-lg font-semibold text-gray-900">${stat.DpName || "Unknown"}</span><br>
<span class="text-md font-bold text-gray-800">
<span class="font-bold">ModulName :</span> ${stat.ModulName || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">Message :</span> ${stat.Message || "N/A"}
</span><br>
<!--<span class="text-gray-800">PrioColor : ${stat.PrioColor || "N/A"}</span><br>-->
<span class="text-gray-800">
<span class="font-bold">PrioName :</span> ${stat.PrioName || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">IdLD :</span> ${stat.IdLD || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">Modul :</span> ${stat.Modul || "N/A"}
</span><br>
</div>
<div class="bg-white rounded-lg m-0 p-2">
<span class="text-lg font-semibold text-gray-900">${stat.ModulName || "Unknown"}</span><br>
<span class="text-md font-bold text-gray-800">
<span class="font-bold">ModulName :</span> ${stat.ModulTyp || "N/A"}
</span><br>
<span class="text-gray-800">
<span class="font-bold">
<span class="inline-block w-2 h-2 rounded-full mr-2" style="background-color: ${stat.PrioColor || "#000000"};"></span>
${stat.Message || "N/A"}
</span>
</span>
<span class="text-gray-800">
<span style="color: ${stat.PrioColor || "#000000"};">(${stat.PrioName || "N/A"})</span>
</span><br>
</div>
`;
}