Deep-link Dozzle logs button to specific container
The discover API now fetches container names from Docker via the Python API on port 9876 and matches them to services by UUID. The Dozzle logs button builds a proper deep link using the Dozzle host ID and container name, opening directly to that container's log stream. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,6 @@
|
||||
|
||||
import { useState, useCallback } from 'react';
|
||||
import { Service, DiscoveredService, getCoolifyUrl, getDozzleUrl } from '@/lib/services';
|
||||
|
||||
const dozzleUrl = getDozzleUrl();
|
||||
import { HealthStatus } from '@/lib/PortalContext';
|
||||
import { Icon } from './Icons';
|
||||
|
||||
@@ -175,7 +173,7 @@ export function ServiceCard({ service, status }: ServiceCardProps) {
|
||||
{/* View logs in Dozzle */}
|
||||
{discovered && (
|
||||
<a
|
||||
href={dozzleUrl}
|
||||
href={getDozzleUrl(service as DiscoveredService)}
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
title="View logs"
|
||||
|
||||
Reference in New Issue
Block a user