1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

[system admin] users: rewrote user pages & 'ldap users' page (#4216)

This commit is contained in:
llj
2019-11-02 17:02:26 +08:00
committed by Daniel Pan
parent 5dae23e52b
commit ad5b070c9f
30 changed files with 1471 additions and 1570 deletions

View File

@@ -37,7 +37,11 @@ class SelectEditor extends React.Component {
for (let i = 0, length = options.length; i < length; i++) {
let option = {};
option.value = options[i];
option.label = <div>{this.props.translateOption(options[i])}{ this.props.translateExplanation && <div className="permission-editor-explanation">{this.props.translateExplanation(options[i])}</div>}</div>;
if (!options[i].length) { // it's ''. for example, intitution option in 'system admin - users' page can be ''.
option.label = <div style={{minHeight: '1em'}}></div>;
} else {
option.label = <div>{this.props.translateOption(options[i])}{ this.props.translateExplanation && <div className="permission-editor-explanation">{this.props.translateExplanation(options[i])}</div>}</div>;
}
this.options.push(option);
}