1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-27 23:56:18 +00:00

improved empty tips (#4391)

This commit is contained in:
llj
2020-01-03 16:50:17 +08:00
committed by Daniel Pan
parent 1c4102e943
commit c485cfc932
22 changed files with 49 additions and 39 deletions

View File

@@ -104,7 +104,7 @@ class InvitePeopleDialog extends React.Component {
const { isSubmitting } = this.state;
return (
<Modal isOpen={true} toggle={this.props.toggleDialog}>
<ModalHeader toggle={this.props.toggleDialog}>{gettext('Invite People')}</ModalHeader>
<ModalHeader toggle={this.props.toggleDialog}>{gettext('Invite Guest')}</ModalHeader>
<ModalBody>
<label htmlFor="emails">{gettext('Emails')}</label>
<Input

View File

@@ -121,7 +121,7 @@ class ShareDialog extends React.Component {
{canInvitePeople &&
<NavItem>
<NavLink className={activeTab === 'invitePeople' ? 'active' : ''} onClick={this.toggle.bind(this, 'invitePeople')}>
{gettext('Invite People')}
{gettext('Invite Guest')}
</NavLink>
</NavItem>
}

View File

@@ -251,7 +251,7 @@ class ShareToInvitePeople extends React.Component {
<table className="table-thead-hidden">
<thead>
<tr>
<th width="50%">{gettext('Invite People')}</th>
<th width="50%">{gettext('Invite Guest')}</th>
<th width="35%">{gettext('Permission')}</th>
<th width="15%">{''}</th>
</tr>

View File

@@ -281,9 +281,9 @@ class MainSideNav extends React.Component {
</li>
{canInvitePeople &&
<li className="nav-item">
<Link className={`nav-link ellipsis ${this.getActiveClass('invitations')}`} to={siteRoot + 'invitations/'} title={gettext('Invite People')} onClick={(e) => this.tabItemClick(e, 'invitations')}>
<Link className={`nav-link ellipsis ${this.getActiveClass('invitations')}`} to={siteRoot + 'invitations/'} title={gettext('Invite Guest')} onClick={(e) => this.tabItemClick(e, 'invitations')}>
<span className="sf2-icon-invite" aria-hidden="true"></span>
<span className="nav-text">{gettext('Invite People')}</span>
<span className="nav-text">{gettext('Invite Guest')}</span>
</Link>
</li>
}

View File

@@ -27,11 +27,11 @@ class InvitationsToolbar extends React.Component {
{Utils.isDesktop() ? (
<div className="operation">
<Button color="btn btn-secondary operation-item" onClick={toggleInvitePeopleDialog}>
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext('Invite People')}
<i className="fas fa-plus-square text-secondary mr-1"></i>{gettext('Invite Guest')}
</Button>
</div>
) : (
<span className="sf2-icon-plus mobile-toolbar-icon" title={gettext('Invite People')} onClick={toggleInvitePeopleDialog}></span>
<span className="sf2-icon-plus mobile-toolbar-icon" title={gettext('Invite Guest')} onClick={toggleInvitePeopleDialog}></span>
)}
</div>
<CommonToolbar searchPlaceholder={this.props.searchPlaceholder} onSearchedClick={onSearchedClick}/>