aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx
diff options
context:
space:
mode:
authorAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-09-03 18:16:13 +0200
committerAijana Schumann <aijana.schumann@highstreet-technologies.com>2020-09-03 18:16:13 +0200
commit65ffa99d96e7b443e3d74ec20bbd321fd66aa76d (patch)
tree1c60e54fec94f80c96fb8a30c3dfbaf47ebe7573 /sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx
parent6a81f77f1f13332dd1784aeae9a27c322c8e556b (diff)
Update NetworkMap
update networkmap Issue-ID: CCSDK-2713 Signed-off-by: Aijana Schumann <aijana.schumann@highstreet-technologies.com> Change-Id: I97b0950a4d7f98fdb9044c1e05dfa8dfca34efaf
Diffstat (limited to 'sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx')
-rw-r--r--sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx14
1 files changed, 7 insertions, 7 deletions
diff --git a/sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx b/sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx
index a2e51d30f..081276b5c 100644
--- a/sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx
+++ b/sdnr/wt/odlux/apps/networkMapApp/src/components/details/details.tsx
@@ -50,10 +50,9 @@ const Details: React.FunctionComponent<porps> = (props) => {
}, []);
- // if url changed
+ // if url changed, load details data
React.useEffect(() => {
const detailsId = getDetailsIdFromUrl();
- console.log(detailsId)
if (detailsId !== null && props.data?.name !== detailsId) {
loadDetailsData(detailsId)
}
@@ -154,16 +153,17 @@ const Details: React.FunctionComponent<porps> = (props) => {
})
}
+ const panelId = props.data!== null ? (isSite(props.data) ? 'site-details-panel' : 'link-details-panel' ): 'details-panel';
return (<div style={{ width: '30%', background: "#bbbdbf", padding: "20px", alignSelf:"stretch" }}>
- <Paper style={{ height:"100%"}} id="site-details-panel" >
+ <Paper style={{ height:"100%"}} id={panelId} aria-label={panelId} >
{
props.breadcrumbs.length > 0 &&
- <Breadcrumbs style={{ marginLeft: "15px", marginTop: "5px" }} aria-label="breadcrumb">
- <Link color="inherit" href="/" onClick={backClick}>
+ <Breadcrumbs style={{ marginLeft: "15px", marginTop: "5px" }} aria-label="breadcrumbs-navigation">
+ <Link aria-label="parent-element" color="inherit" href="/" onClick={backClick}>
{props.breadcrumbs[0].id}
</Link>
- <Link>
+ <Link aria-label="child-element" color="textSecondary">
{props.data?.name}
</Link>
</Breadcrumbs>
@@ -171,7 +171,7 @@ const Details: React.FunctionComponent<porps> = (props) => {
{
props.data !== null ?
createDetailPanel(props.data)
- : <Typography style={{ marginTop: "5px" }} align="center" variant="body1">{message}</Typography>
+ : <Typography aria-label="details-panel-alt-message" style={{ marginTop: "5px" }} align="center" variant="body1">{message}</Typography>
}
</Paper>