1
0
mirror of https://github.com/flarum/core.git synced 2025-07-22 17:21:27 +02:00

Begin implementing permissions page

This commit is contained in:
Toby Zerner
2015-07-29 21:00:27 +09:30
parent 5f1db93e3d
commit 6873f77012
8 changed files with 431 additions and 4 deletions

View File

@@ -38,6 +38,6 @@ export default class Badge extends Component {
config(isInitialized) {
if (isInitialized) return;
this.$().tooltip();
if (this.props.label) this.$().tooltip();
}
}

View File

@@ -15,7 +15,7 @@ export default class Select extends Component {
return (
<span className="Select">
<select className="Select-input FormControl" onchange={m.withAttr('value', onchange.bind(this))} value={value}>
<select className="Select-input FormControl" onchange={onchange ? m.withAttr('value', onchange.bind(this)) : undefined} value={value}>
{Object.keys(options).map(key => <option value={key}>{options[key]}</option>)}
</select>
{icon('sort', {className: 'Select-caret'})}