mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-04 16:31:13 +00:00
fix translation and style (#6604)
This commit is contained in:
@@ -53,7 +53,6 @@ class MyLibsDeleted extends Component {
|
||||
{this.state.isLoading && <Loading />}
|
||||
{(!this.state.isLoading && repos.length === 0) &&
|
||||
<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)}
|
||||
|
@@ -175,7 +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} text={gettext('No group shares')}/>
|
||||
<EmptyTip text={gettext('No group shares')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -128,7 +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} text={gettext('No share links')}/>
|
||||
<EmptyTip text={gettext('No share links')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -118,7 +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} text={gettext('No upload links')}/>
|
||||
<EmptyTip text={gettext('No upload links')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -175,7 +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} text={gettext('No user shares')}/>
|
||||
<EmptyTip text={gettext('No user shares')}/>
|
||||
}
|
||||
{!loading && !errorMsg && items.length > 0 &&
|
||||
<table className="table-hover">
|
||||
|
@@ -113,7 +113,7 @@ const propTypes = {
|
||||
itemPath: PropTypes.string.isRequired,
|
||||
itemType: PropTypes.string.isRequired,
|
||||
repoID: PropTypes.string.isRequired,
|
||||
repoType: PropTypes.string.isRequired,
|
||||
repoType: PropTypes.string,
|
||||
isRepoOwner: PropTypes.bool.isRequired,
|
||||
onAddCustomPermissionToggle: PropTypes.func,
|
||||
};
|
||||
|
@@ -154,7 +154,7 @@ const propTypes = {
|
||||
itemType: PropTypes.string.isRequired,
|
||||
repoID: PropTypes.string.isRequired,
|
||||
isRepoOwner: PropTypes.bool.isRequired,
|
||||
repoType: PropTypes.string.isRequired,
|
||||
repoType: PropTypes.string,
|
||||
onAddCustomPermissionToggle: PropTypes.func,
|
||||
};
|
||||
|
||||
|
@@ -3,9 +3,9 @@ import PropTypes from 'prop-types';
|
||||
import { mediaUrl } from '../utils/constants';
|
||||
import '../css/empty-tip.css';
|
||||
|
||||
function EmptyTip({ forDialog, className, title, text, children }) {
|
||||
function EmptyTip({ className, title, text, children }) {
|
||||
return (
|
||||
<div className={forDialog ? `${className || 'text-center mt-8'}` : 'empty-tip'}>
|
||||
<div className='empty-tip'>
|
||||
<img src={`${mediaUrl}img/no-items-tip.png`} alt="" width="100" height="100" className="no-items-img-tip" />
|
||||
{title && <span className="empty-tip-title">{title}</span>}
|
||||
{text && <span className="empty-tip-text">{text}</span>}
|
||||
@@ -15,7 +15,6 @@ function EmptyTip({ forDialog, className, title, text, children }) {
|
||||
}
|
||||
|
||||
EmptyTip.propTypes = {
|
||||
forDialog: PropTypes.bool,
|
||||
className: PropTypes.string,
|
||||
title: PropTypes.string,
|
||||
text: PropTypes.string,
|
||||
|
@@ -73,7 +73,7 @@ class LinkList extends React.Component {
|
||||
</div>
|
||||
</div>
|
||||
{shareLinks.length == 0 ? (
|
||||
<EmptyTip forDialog={true} text={gettext('No share links')}/>
|
||||
<EmptyTip text={gettext('No share links')}/>
|
||||
) : (
|
||||
<div className='share-list-container share-link-list'>
|
||||
<table className="table-place-header">
|
||||
|
Reference in New Issue
Block a user