Skip to content
Snippets Groups Projects
Commit 83a64586 authored by vkovtun's avatar vkovtun
Browse files

SSDM-13579: Made the last link in the path look different, and if the user is...

SSDM-13579: Made the last link in the path look different, and if the user is in the root directory the home button will be disabled.
parent ba04a5d5
No related branches found
No related tags found
1 merge request!40SSDM-13578 : 2PT : Database and V3 Implementation - include the new AFS "free"...
...@@ -39,8 +39,10 @@ const styles = theme => ({ ...@@ -39,8 +39,10 @@ const styles = theme => ({
'& *': { '& *': {
fontSize: '1.125rem' fontSize: '1.125rem'
}, },
'& .disabled': { '& *:not(:first-child):last-child': {
pointerEvents: 'none' pointerEvents: 'none',
color: 'inherit',
fontWeight: 'bold'
} }
}, },
}) })
...@@ -73,7 +75,7 @@ class NavigationBar extends React.Component { ...@@ -73,7 +75,7 @@ class NavigationBar extends React.Component {
components[0] = <IconButton components[0] = <IconButton
key='root' key='root'
classes={{ root: classes.button }} classes={{ root: classes.button }}
color={color} color='secondary'
size={iconButtonSize} size={iconButtonSize}
variant='outlined' variant='outlined'
onClick={() => onPathChange('/')} onClick={() => onPathChange('/')}
...@@ -88,7 +90,6 @@ class NavigationBar extends React.Component { ...@@ -88,7 +90,6 @@ class NavigationBar extends React.Component {
classes={{ root: classes.link }} classes={{ root: classes.link }}
component="button" component="button"
onClick={() => onPathChange(paths[i])} onClick={() => onPathChange(paths[i])}
disabled={i === path.length - 1}
> >
{folders[i]} {folders[i]}
</Link> </Link>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment