aboutsummaryrefslogtreecommitdiffstats
path: root/app/javascript/routes/components/BSelect2.js
diff options
context:
space:
mode:
authorcedricnjanga2018-04-12 06:33:32 -0700
committerJohan Van Ryseghem2018-04-24 11:08:36 +0200
commiteb51cf0aa62a96c552c1a32778aa84e64df458a6 (patch)
tree92cc8cf466007b2ec78f293a25508666e510fe92 /app/javascript/routes/components/BSelect2.js
parentd85ec520859aae6a5bdc25ac1f11e00ded5f6266 (diff)
downloadchouette-core-eb51cf0aa62a96c552c1a32778aa84e64df458a6.tar.bz2
Refs #6376 Add some english translations
Diffstat (limited to 'app/javascript/routes/components/BSelect2.js')
-rw-r--r--app/javascript/routes/components/BSelect2.js12
1 files changed, 4 insertions, 8 deletions
diff --git a/app/javascript/routes/components/BSelect2.js b/app/javascript/routes/components/BSelect2.js
index 89e1b6cfa..90f288944 100644
--- a/app/javascript/routes/components/BSelect2.js
+++ b/app/javascript/routes/components/BSelect2.js
@@ -10,8 +10,8 @@ var path = window.location.pathname.split('/', 3).join('/')
export default class BSelect3 extends Component {
- constructor(props, context) {
- super(props, context)
+ constructor(props) {
+ super(props)
}
onChange(e) {
this.props.onChange(this.props.index, {
@@ -86,7 +86,7 @@ class BSelect2 extends Component{
onSelect={ this.props.onSelect }
ref='newSelect'
options={{
- placeholder: this.context.I18n.t("routes.edit.select2.placeholder"),
+ placeholder: I18n.t("routes.edit.select2.placeholder"),
allowClear: true,
language: 'fr', /* Doesn't seem to work... :( */
theme: 'bootstrap',
@@ -129,8 +129,4 @@ class BSelect2 extends Component{
/>
)
}
-}
-
-BSelect2.contextTypes = {
- I18n: PropTypes.object
-}
+} \ No newline at end of file