1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-07 18:03:48 +00:00

repair new department bug

This commit is contained in:
shanshuirenjia
2019-05-05 12:00:41 +08:00
parent 7c1cacc9ed
commit 45daa70089

View File

@@ -353,7 +353,7 @@ class GroupView extends React.Component {
} }
render() { render() {
let { errMessage, emptyTip, currentGroup } = this.state; let { errMessage, emptyTip, currentGroup, isDepartmentGroup, isStaff } = this.state;
let isShowSettingIcon = !(currentGroup && currentGroup.parent_group_id !== 0 && currentGroup.admins.indexOf(username) === -1); let isShowSettingIcon = !(currentGroup && currentGroup.parent_group_id !== 0 && currentGroup.admins.indexOf(username) === -1);
let that = this; let that = this;
return ( return (
@@ -374,7 +374,7 @@ class GroupView extends React.Component {
<div className="main-panel-center flex-row"> <div className="main-panel-center flex-row">
<div className="cur-view-container"> <div className="cur-view-container">
<div className="cur-view-path"> <div className="cur-view-path">
{currentGroup && ( {((!isDepartmentGroup && currentGroup) || (isDepartmentGroup && isStaff)) && (
<Fragment> <Fragment>
<div className="path-container"> <div className="path-container">
<Link to={`${siteRoot}groups/`} onClick={() => this.onTabNavClick('groups')}>{gettext('Groups')}</Link> <Link to={`${siteRoot}groups/`} onClick={() => this.onTabNavClick('groups')}>{gettext('Groups')}</Link>