From 55da78826e3e2eea1fb40b3aa37a37cda01e56f0 Mon Sep 17 00:00:00 2001 From: Michael An <37589122+Michael18811380328@users.noreply.github.com> Date: Mon, 28 Jan 2019 16:22:56 +0800 Subject: [PATCH] fix-translation (#2896) --- frontend/src/components/dialog/manage-members-dialog.js | 2 +- frontend/src/{models => components}/user-select.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) rename frontend/src/{models => components}/user-select.js (94%) diff --git a/frontend/src/components/dialog/manage-members-dialog.js b/frontend/src/components/dialog/manage-members-dialog.js index 4cd8e8fe82..c2df221987 100644 --- a/frontend/src/components/dialog/manage-members-dialog.js +++ b/frontend/src/components/dialog/manage-members-dialog.js @@ -5,7 +5,7 @@ import { gettext } from '../../utils/constants'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Table } from 'reactstrap'; import { seafileAPI } from '../../utils/seafile-api.js'; import RoleEditor from '../select-editor/role-eidtor'; -import UserSelect from '../../models/user-select'; +import UserSelect from '../user-select.js'; import '../../css/manage-members-dialog.css'; const propTypes = { diff --git a/frontend/src/models/user-select.js b/frontend/src/components/user-select.js similarity index 94% rename from frontend/src/models/user-select.js rename to frontend/src/components/user-select.js index 2eb699c2cc..aaf28b1191 100644 --- a/frontend/src/models/user-select.js +++ b/frontend/src/components/user-select.js @@ -2,7 +2,6 @@ import React from 'react'; import PropTypes from 'prop-types'; import AsyncSelect from 'react-select/lib/Async'; import { seafileAPI } from '../utils/seafile-api.js'; -import { gettext } from '../utils/constants'; const propTypes = { placeholder: PropTypes.string.isRequired, @@ -57,7 +56,7 @@ class UserSelect extends React.Component { isMulti={this.props.isMulti} loadOptions={this.loadOptions} onChange={this.handleSelectChange} - placeholder={gettext(this.props.placeholder)} + placeholder={this.props.placeholder} className={this.props.className} ref="userSelect" />