1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 20:01:10 +00:00

repair path nav bug

This commit is contained in:
shanshuirenjia
2018-12-11 18:05:57 +08:00
parent f1eb4c625f
commit 5136b50498
2 changed files with 7 additions and 6 deletions

View File

@@ -1,6 +1,7 @@
import React,{ Fragment } from 'react';
import PropTypes from 'prop-types';
import { gettext, siteRoot, username, loginUrl } from '../../utils/constants';
import { Link } from '@reach/router';
import { seafileAPI } from '../../utils/seafile-api';
import Loading from '../../components/loading';
import ModalPortal from '../../components/modal-portal';
@@ -202,7 +203,7 @@ class GroupView extends React.Component {
{currentGroup && (
<Fragment>
<div className="path-container">
<a href={`${siteRoot}groups/`}>{gettext("Groups")}</a>
<Link to={`${siteRoot}groups/`}>{gettext("Groups")}</Link>
<span className="path-split">/</span>
<span>{currentGroup.name}</span>
{currentGroup.parent_group_id !== 0 && (