Update session-card.js

Removed Tooltip as it was unnecessary
Also added a check in the frontend. if the env variables where not set for the GEOLITE API, it would disable the option entirely
This commit is contained in:
Thegan Govender
2023-11-04 23:34:29 +02:00
committed by GitHub
parent 3089cb2c3f
commit c9b64aea1e

View File

@@ -154,8 +154,8 @@ function SessionCard(props) {
</Row>
<Row>
<Col className="px-0 col-auto ellipse">
<Tooltip title={isRemoteSession ? 'Remote' : 'Local'}>
{isRemoteSession ?
{isRemoteSession && (process.env.GEOLITE_ACCOUNT_ID && process.env.GEOLITE_LICENSE_KEY) ?
<Card.Text>
IP Address: <Link onClick={showModal}>{props.data.session.RemoteEndPoint}</Link>
</Card.Text>
@@ -164,7 +164,7 @@ function SessionCard(props) {
IP Address: {props.data.session.RemoteEndPoint}
</span>
}
</Tooltip>
</Col>
</Row>
</Col>