1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-05 00:43:53 +00:00

add shared group owned repo logic

This commit is contained in:
shanshuirenjia
2018-12-14 21:39:17 +08:00
parent 4dd83c3df7
commit 853659cdc6
5 changed files with 130 additions and 49 deletions

View File

@@ -9,6 +9,7 @@ import GenerateUploadLink from './generate-upload-link';
import '../../css/share-link-dialog.css';
const propTypes = {
isGroupOwnedRepo: PropTypes.bool,
itemType: PropTypes.string.isRequired, // there will be three choose: ['library', 'dir', 'file']
itemName: PropTypes.string.isRequired,
itemPath: PropTypes.string.isRequired,
@@ -67,10 +68,10 @@ class ShareDialog extends React.Component {
<GenerateUploadLink itemPath={this.props.itemPath} repoID={this.props.repoID} />
</TabPane>
<TabPane tabId="shareToUser">
<ShareToUser itemPath={this.props.itemPath} repoID={this.props.repoID} />
<ShareToUser isGroupOwnedRepo={this.props.isGroupOwnedRepo} itemPath={this.props.itemPath} repoID={this.props.repoID} />
</TabPane>
<TabPane tabId="shareToGroup">
<ShareToGroup itemPath={this.props.itemPath} repoID={this.props.repoID} />
<ShareToGroup isGroupOwnedRepo={this.props.isGroupOwnedRepo} itemPath={this.props.itemPath} repoID={this.props.repoID} />
</TabPane>
</TabContent>
</div>