diff --git a/src/components/views/elements/PowerSelector.js b/src/components/views/elements/PowerSelector.js
index a0aaa12ff1..8e60a7066d 100644
--- a/src/components/views/elements/PowerSelector.js
+++ b/src/components/views/elements/PowerSelector.js
@@ -18,7 +18,7 @@ limitations under the License.
import React from 'react';
import * as Roles from '../../../Roles';
-import { _t } from '../../../languageHandler';
+import { _t, _tJsx } from '../../../languageHandler';
let LEVEL_ROLE_MAP = {};
const reverseRoles = {};
@@ -85,13 +85,11 @@ module.exports = React.createClass({
render: function() {
let customPicker;
if (this.state.custom) {
- let input;
if (this.props.disabled) {
- input = { this.props.value };
+ customPicker = { _tJsx('Custom of ', [//], [(sub) => { this.props.value }]) };
} else {
- input = ;
+ customPicker = ;
}
- customPicker = of { input };
}
let selectValue;
@@ -102,7 +100,9 @@ module.exports = React.createClass({
}
let select;
if (this.props.disabled) {
- select = { selectValue };
+ if (!this.state.custom) {
+ select = { selectValue };
+ }
} else {
// Each level must have a definition in LEVEL_ROLE_MAP
const levels = [0, 50, 100];
diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json
index 83793291c9..cfc28e3432 100644
--- a/src/i18n/strings/en_EN.json
+++ b/src/i18n/strings/en_EN.json
@@ -581,6 +581,7 @@
"%(items)s and %(count)s others|other": "%(items)s and %(count)s others",
"%(items)s and %(count)s others|one": "%(items)s and one other",
"%(items)s and %(lastItem)s": "%(items)s and %(lastItem)s",
+ "Custom of ": "Custom of ",
"Custom level": "Custom level",
"Room directory": "Room directory",
"Start chat": "Start chat",