Skip to content

Commit

Permalink
delete ... in search and select component
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael18811380328 committed Dec 4, 2023
1 parent 389d3a3 commit acaad1d
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/add-reviewer-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class AddReviewerDialog extends React.Component {
<p>{gettext('Add new reviewer')}</p>
<div className='add-reviewer'>
<UserSelect
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
ref="reviewSelect"
isMulti={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ class LibSubFolderSetUserPermissionDialog extends React.Component {
ref="userSelect"
isMulti={true}
className="reviewer-select"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleUserSelectChange}
value={this.state.selectedUsers}
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/org-add-admin-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class AddOrgAdminDialog extends React.Component {
ref="userSelect"
isMulti={false}
className="reviewer-select"
placeholder={gettext('Select a user as admin...')}
placeholder={gettext('Select a user as admin')}
onSelectChange={this.handleSelectChange}
/>
{this.state.errMessage && <Alert color="danger" className="mt-2">{this.state.errMessage}</Alert>}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/org-add-member-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class AddMemberDialog extends React.Component {
<ModalHeader toggle={this.props.toggle}>{gettext('Add Member')}</ModalHeader>
<ModalBody>
<UserSelect
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
ref="orgSelect"
isMulti={false}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/share-to-group.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class ShareToGroup extends React.Component {
<SeahubSelect
onChange={this.handleSelectChange}
options={this.state.options}
placeholder={gettext('Select groups...')}
placeholder={gettext('Select groups')}
maxMenuHeight={200}
value={this.state.selectedOption}
components={{ NoOptionsMessage: NoGroupMessage }}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/share-to-other-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class ShareToOtherServer extends React.Component {
<tr>
<td>
<SeahubSelect
placeholder={gettext('Select a server...')}
placeholder={gettext('Select a server')}
value={selectedServer}
options={ocmRemoteServers}
onChange={this.handleServerChange}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/dialog/share-to-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ class ShareToUser extends React.Component {
ref="userSelect"
isMulti={true}
className="reviewer-select"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
/>
</td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AddMemberDialog extends React.Component {
<ModalHeader toggle={this.props.toggle}>{gettext('Add Member')}</ModalHeader>
<ModalBody>
<UserSelect
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
isMulti={true}
className='org-add-member-select'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AddMemberDialog extends React.Component {
<ModalHeader toggle={this.props.toggle}>{gettext('Add Member')}</ModalHeader>
<ModalBody>
<UserSelect
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
ref="orgSelect"
isMulti={true}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SysAdminBatchAddAdminDialog extends React.Component {
<UserSelect
isMulti={true}
className="reviewer-select"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
/>
</ModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class SysAdminGroupAddMemberDialog extends React.Component {
ref="userSelect"
isMulti={true}
className="reviewer-select"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
/>
</ModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class SysAdminRepoTransferDialog extends React.Component {
ref="userSelect"
isMulti={false}
className="reviewer-select"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
/>
</ModalBody>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ class SysAdminShareToGroup extends React.Component {
<SeahubSelect
onChange={this.handleSelectChange}
options={this.options}
placeholder={gettext('Select groups...')}
placeholder={gettext('Select groups')}
maxMenuHeight={200}
value={this.state.selectedOption}
components={{ NoOptionsMessage: NoGroupMessage }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ class SysAdminShareToUser extends React.Component {
ref="userSelect"
isMulti={true}
className="reviewer-select"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.handleSelectChange}
/>
</td>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/file-chooser/file-chooser.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ class FileChooser extends React.Component {
<Fragment>
{isPro && (
<div className="file-chooser-search-input">
<Input className="search-input mb-2" placeholder={gettext('Search...')} type='text' value={this.state.searchInfo} onChange={this.onSearchInfoChanged}></Input>
<Input className="search-input mb-2" placeholder={gettext('Search')} type='text' value={this.state.searchInfo} onChange={this.onSearchInfoChanged}></Input>
{this.state.searchInfo.length !== 0 && (
<span className="search-control attr-action-icon fas fa-times" onClick={this.onCloseSearching}></span>
)}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/list-and-add-group-members.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ManageMembersDialog extends React.Component {
<p className="mb-2">{gettext('Add group member')}</p>
<div className='add-members'>
<UserSelect
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
onSelectChange={this.onSelectChange}
ref="userSelect"
isMulti={true}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/dashboard/user-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class UserSelector extends Component {
<div className="px-3 pt-3">
<Input
type="text"
placeholder={gettext('Search users...')}
placeholder={gettext('Search users')}
value={query}
onChange={this.onQueryChange}
/>
Expand Down
2 changes: 1 addition & 1 deletion seahub/institutions/templates/institutions/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h3 class="hd">{{ request.user.institution.name }}</h3>
</ul>

<form action="{% url 'institutions:useradmin_search' %}" method="get" class="side-search-form">
<input type="text" name="q" class="input" value="{{q}}" placeholder="{% trans "Search users..." %}" />
<input type="text" name="q" class="input" value="{{q}}" placeholder="{% trans "Search users" %}" />
</form>
{% endblock %}
</div>
Expand Down

0 comments on commit acaad1d

Please sign in to comment.