1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-11 03:41:12 +00:00

[my libs] fixup & improvement

This commit is contained in:
llj
2019-06-11 11:07:24 +08:00
parent 3501058154
commit 2a44007b94

View File

@@ -152,9 +152,9 @@ class MyLibraries extends Component {
</div>
<div className="cur-view-content">
{this.state.isLoading && <Loading />}
{!this.state.isLoading && this.state.errorMsg && <p className="error text-center">{this.state.errorMsg}</p>}
{!this.state.isLoading && this.state.repoList.length === 0 && this.emptyMessage}
{!this.state.isLoading && this.state.repoList.length > 0 &&
{!this.state.isLoading && this.state.errorMsg && <p className="error text-center mt-8">{this.state.errorMsg}</p>}
{!this.state.isLoading && !this.state.errorMsg && this.state.repoList.length === 0 && this.emptyMessage}
{!this.state.isLoading && !this.state.errorMsg && this.state.repoList.length > 0 &&
<MylibRepoListView
sortBy={this.state.sortBy}
sortOrder={this.state.sortOrder}