mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 08:28:11 +00:00
update share popup (#6294)
This commit is contained in:
@@ -203,7 +203,7 @@ class ShareDialog extends React.Component {
|
||||
}
|
||||
{enableDirPrivateShare &&
|
||||
<Fragment>
|
||||
{activeTab === 'shareToUser' &&
|
||||
{(activeTab === 'shareToUser' && canShareRepo) &&
|
||||
<TabPane tabId="shareToUser" role="tabpanel" id="share-to-user-panel">
|
||||
<ShareToUser
|
||||
itemType={this.props.itemType}
|
||||
@@ -215,7 +215,7 @@ class ShareDialog extends React.Component {
|
||||
/>
|
||||
</TabPane>
|
||||
}
|
||||
{activeTab === 'shareToGroup' &&
|
||||
{(activeTab === 'shareToGroup' && canShareRepo) &&
|
||||
<TabPane tabId="shareToGroup" role="tabpanel" id="share-to-group-panel">
|
||||
<ShareToGroup
|
||||
itemType={this.props.itemType}
|
||||
@@ -227,7 +227,7 @@ class ShareDialog extends React.Component {
|
||||
/>
|
||||
</TabPane>
|
||||
}
|
||||
{isPro && activeTab === 'customSharePermission' && (
|
||||
{(isPro && activeTab === 'customSharePermission' && canShareRepo) && (
|
||||
<TabPane tabId="customSharePermission" role="tabpanel" id="custom-share-perm-panel">
|
||||
<CustomPermissionManager repoID={this.props.repoID} />
|
||||
</TabPane>
|
||||
|
Reference in New Issue
Block a user