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}>
|
||||
<TableCell className="path">{path}</TableCell>
|
||||
<TableCell className="link">
|
||||
<a
|
||||
href={link}
|
||||
rel="noreferrer"
|
||||
target="_blank"
|
||||
>
|
||||
{link}
|
||||
</a>
|
||||
{
|
||||
rule.host
|
||||
? (
|
||||
<a href={link} rel="noreferrer" target="_blank">
|
||||
{link}
|
||||
</a>
|
||||
)
|
||||
: link
|
||||
}
|
||||
</TableCell>
|
||||
<TableCell className="backends">{getBackendServiceNamePort(backend)}</TableCell>
|
||||
</TableRow>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user