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