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

Add modalportal

This commit is contained in:
zxj96
2019-06-19 09:56:14 +08:00
parent a9427bb6e1
commit f35f327838

View File

@@ -308,13 +308,6 @@ class SharedRepoListItem extends React.Component {
})} })}
</DropdownMenu> </DropdownMenu>
</Dropdown> </Dropdown>
{this.state.isDeleteDialogShow &&
<DeleteRepoDialog
repo={this.props.repo}
onDeleteRepo={this.props.onItemDelete}
toggle={this.onItemDeleteToggle}
/>
}
</Fragment> </Fragment>
); );
} else { } else {
@@ -400,6 +393,15 @@ class SharedRepoListItem extends React.Component {
/> />
</ModalPortal> </ModalPortal>
)} )}
{this.state.isDeleteDialogShow &&
<ModalPortal>
<DeleteRepoDialog
repo={this.props.repo}
onDeleteRepo={this.props.onItemDelete}
toggle={this.onItemDeleteToggle}
/>
</ModalPortal>
}
</Fragment> </Fragment>
); );
} }