Commit a91b5653 authored by Matija Obreza's avatar Matija Obreza
Browse files

Minor cosmetic updates

parent 3601fc7b
......@@ -31,7 +31,7 @@ const styles = (theme) => ({
});
const CropChips = ({crops, availableCrops, classes}: ICropChipsProps) => {
console.log(`CropChips`, crops);
// console.log(`CropChips`, crops);
if (typeof crops === 'string') {
crops = [ crops ];
}
......
......@@ -6,7 +6,7 @@ export function FolderCrumbs({ path, root = '/', disabled = false }: { path: str
if (path) {
const parts: string[] = path.split('/').filter((part) => part.length > 0);
const len: number = parts.length;
console.log(`Path ${disabled} parts path=${path}`, parts, len);
// console.log(`Path ${disabled} parts path=${path}`, parts, len);
return (
<span>
<span> { disabled || len === 0 ? 'ROOT' : <Link to={ '../'.repeat(len) }>ROOT</Link> } <b>/</b></span>
......
......@@ -128,7 +128,7 @@ class LangListComponent extends React.Component<ILangListComponentProps, any> {
{
// Using <a href="ru/" will reload app from server
languages.map((lang, index) => (
<a key={ (lang.short) } href={ `${lang.short}/` }><MenuItem>{ `${lang.label}` }</MenuItem></a>
<a key={ (lang.short) } href={ `${lang.short === 'en' ? '' : lang.short}/` }><MenuItem>{ `${lang.label}` }</MenuItem></a>
))
}
</Menu>
......
......@@ -115,7 +115,6 @@ class UserMenuComponent extends React.Component<IUserMenuComponentProps, any> {
<Link to="/admin/"><MenuItem>{ t('menu.Admin') }</MenuItem></Link>
</Authorize>
<Link to="/dashboard"><MenuItem>{ t('menu.My Dashboard') }</MenuItem></Link>
<Link to="/a"><MenuItem>{ t('menu.Accessions') }</MenuItem></Link>
<MenuItem onClick={ logoutRequest } >{ t('common:action.logout') }</MenuItem>
</Menu>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment