mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Only display link if host is defined
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
aa4b9bcfc6
commit
2af1fb10af
@ -77,13 +77,15 @@ export class IngressDetails extends React.Component<IngressDetailsProps> {
|
|||||||
<TableRow key={index}>
|
<TableRow key={index}>
|
||||||
<TableCell className="path">{path}</TableCell>
|
<TableCell className="path">{path}</TableCell>
|
||||||
<TableCell className="link">
|
<TableCell className="link">
|
||||||
<a
|
{
|
||||||
href={link}
|
rule.host
|
||||||
rel="noreferrer"
|
? (
|
||||||
target="_blank"
|
<a href={link} rel="noreferrer" target="_blank">
|
||||||
>
|
{link}
|
||||||
{link}
|
</a>
|
||||||
</a>
|
)
|
||||||
|
: link
|
||||||
|
}
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell className="backends">{getBackendServiceNamePort(backend)}</TableCell>
|
<TableCell className="backends">{getBackendServiceNamePort(backend)}</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user