Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions webapp/src/components/link_tooltip/link_tooltip.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const getInfoAboutLink = (href, hostname) => {
return {};
};

export const LinkTooltip = ({href, connected, gitlabURL}) => {
export const LinkTooltip = ({href, connected, gitlabURL, show}) => {
const [data, setData] = useState(null);
const dispatch = useDispatch();
useEffect(() => {
Expand Down Expand Up @@ -74,12 +74,12 @@ export const LinkTooltip = ({href, connected, gitlabURL}) => {
}
};

if (!connected) {
if (!connected || !show) {
return;
}
Comment thread
mickmister marked this conversation as resolved.
Outdated

init();
}, [connected, href]);
}, [connected, href, show]);

const getIconElement = () => {
const iconProps = {
Expand Down Expand Up @@ -210,4 +210,5 @@ LinkTooltip.propTypes = {
href: PropTypes.string.isRequired,
connected: PropTypes.bool.isRequired,
gitlabURL: PropTypes.string.isRequired,
show: PropTypes.bool,
};