Update DockerContainers.php

Fix logic error
This commit is contained in:
Christoph Hummer
2024-10-22 08:45:58 +02:00
committed by GitHub
parent 6c299eda87
commit 3e5fa408a6

View File

@@ -308,14 +308,14 @@ foreach ($containers as $ct) {
}
}
}
// Display message to refresh page if Tailscale in the container wasn't maybe ready to get the data
// Display TSinfo if data was fetched correctly
echo "<div title='" . $TSinfo . "'><img src='/plugins/dynamix.docker.manager/images/tailscale.png' style='height: 16px;'> Tailscale</div>";
} else {
// Display message to refresh page if Tailscale in the container wasn't maybe ready to get the data
echo "<div title='Error gathering Tailscale information from container.\nPlease check the logs and refresh the page.'><img src='/plugins/dynamix.docker.manager/images/tailscale.png' style='height: 16px;'> Tailscale</div></td>";
}
// Display TSinfo if data was fetched correctly
echo "<div title='" . $TSinfo . "'><img src='/plugins/dynamix.docker.manager/images/tailscale.png' style='height: 16px;'> Tailscale</div>";
// Display message that container isn't running
} else {
// Display message that container isn't running
echo "<div title='Container not runnig'><img src='/plugins/dynamix.docker.manager/images/tailscale.png' style='height: 16px;'> Tailscale</div></td>";
}
}