Skip to content

Commit

Permalink
show complete launch path in the node details panel
Browse files Browse the repository at this point in the history
  • Loading branch information
atiderko committed Apr 3, 2024
1 parent dd35d34 commit aba3fee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions fkie_mas_gui/src/renderer/components/UI/Tag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function Tag({ title, text, color, copyButton, wrap }) {
chipSX['& .MuiChip-label'] = {
display: 'block',
whiteSpace: 'normal',
wordWrap: 'break-word',
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,23 @@ function NodesDetailsPanel() {

const [nodesShow, setNodesShow] = useState([]);

const [showNodeInfo, setShowNodeInfo] = useLocalStorage(
const [showNodeInfo] = useLocalStorage(
'NodesDetailsPanel:showNodeInfo',
false,
);
const [showPublishers, setShowPublishers] = useLocalStorage(
const [showPublishers] = useLocalStorage(
'NodesDetailsPanel:showPublishers',
true,
);
const [showSubscribers, setShowSubscribers] = useLocalStorage(
const [showSubscribers] = useLocalStorage(
'NodesDetailsPanel:showSubscribers',
true,
);
const [showServices, setShowServices] = useLocalStorage(
const [showServices] = useLocalStorage(
'NodesDetailsPanel:showServices',
false,
);
const [showConnections, setShowConnections] = useLocalStorage(
const [showConnections] = useLocalStorage(
'NodesDetailsPanel:showConnections',
true,
);
Expand Down Expand Up @@ -139,14 +139,8 @@ function NodesDetailsPanel() {
return;
}

let tittle = null;
let defaultNoData = true;
if (rosTopicType === 'HZ') tittle = 'Rate (Hz)';
if (rosTopicType === 'BW') tittle = 'Bandwidth';
if (rosTopicType === 'DELAY') tittle = 'Delay';

if (rosTopicType === 'ECHO') {
tittle = 'Echo';
defaultNoData = false;
}
const provider = rosCtx.getProviderById(providerId);
Expand Down Expand Up @@ -200,7 +194,7 @@ function NodesDetailsPanel() {
);
}
},
[logCtx],
[logCtx, rosCtx],
);

const onServiceClick = useCallback(
Expand Down Expand Up @@ -348,6 +342,7 @@ function NodesDetailsPanel() {
title="Launch:"
text={launchPath}
wrap
copyButton={launchPath}
/>
))}
</Stack>
Expand Down

0 comments on commit aba3fee

Please sign in to comment.