mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 18:29:23 +00:00
change empty tips (#6565)
* [draft] change empty tips * remove useless codes
This commit is contained in:
@@ -52,10 +52,12 @@ class MyLibsDeleted extends Component {
|
||||
<ModalBody className="my-deleted-repos-container">
|
||||
{this.state.isLoading && <Loading />}
|
||||
{(!this.state.isLoading && repos.length === 0) &&
|
||||
<EmptyTip forDialog={true} className="my-deleted-repos-empty-tip">
|
||||
<h2 className="h6 font-weight-normal">{gettext('No deleted libraries')}</h2>
|
||||
<p className="empty-explanation">{gettext('You have not deleted any libraries in the last {placeholder} days. A deleted library will be cleaned automatically after this period.').replace('{placeholder}', trashReposExpireDays)}</p>
|
||||
</EmptyTip>
|
||||
<EmptyTip
|
||||
forDialog={true}
|
||||
className="my-deleted-repos-empty-tip"
|
||||
title={gettext('No deleted libraries')}
|
||||
text={gettext('You have not deleted any libraries in the last {placeholder} days. A deleted library will be cleaned automatically after this period.').replace('{placeholder}', trashReposExpireDays)}
|
||||
/>
|
||||
}
|
||||
{repos.length !== 0 &&
|
||||
<div>
|
||||
|
@@ -175,9 +175,7 @@ class RepoShareAdminGroupShares extends Component {
|
||||
{loading && <Loading />}
|
||||
{!loading && errorMsg && <p className="error text-center mt-8">{errorMsg}</p>}
|
||||
{!loading && !errorMsg && !items.length &&
|
||||
<EmptyTip forDialog={true}>
|
||||
<p className="text-secondary">{gettext('No group shares')}</p>
|
||||
</EmptyTip>
|
||||
<EmptyTip forDialog={true} text={gettext('No group shares')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -128,9 +128,7 @@ class RepoShareAdminShareLinks extends Component {
|
||||
{loading && <Loading />}
|
||||
{!loading && errorMsg && <p className="error text-center mt-8">{errorMsg}</p>}
|
||||
{!loading && !errorMsg && !items.length &&
|
||||
<EmptyTip forDialog={true}>
|
||||
<p className="text-secondary">{gettext('No share links')}</p>
|
||||
</EmptyTip>
|
||||
<EmptyTip forDialog={true} text={gettext('No share links')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -118,9 +118,7 @@ class RepoShareAdminUploadLinks extends Component {
|
||||
{loading && <Loading />}
|
||||
{!loading && errorMsg && <p className="error text-center mt-8">{errorMsg}</p>}
|
||||
{!loading && !errorMsg && !items.length &&
|
||||
<EmptyTip forDialog={true}>
|
||||
<p className="text-secondary">{gettext('No upload links')}</p>
|
||||
</EmptyTip>
|
||||
<EmptyTip forDialog={true} text={gettext('No upload links')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -175,9 +175,7 @@ class RepoShareAdminUserShares extends Component {
|
||||
{loading && <Loading />}
|
||||
{!loading && errorMsg && <p className="error text-center mt-8">{errorMsg}</p>}
|
||||
{!loading && !errorMsg && !items.length &&
|
||||
<EmptyTip forDialog={true}>
|
||||
<p className="text-secondary">{gettext('No user shares')}</p>
|
||||
</EmptyTip>
|
||||
<EmptyTip forDialog={true} text={gettext('No user shares')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
Reference in New Issue
Block a user