1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

permission explanation

This commit is contained in:
Michael An
2019-01-24 17:15:01 +08:00
parent 684167819f
commit a2acee268b
5 changed files with 82 additions and 22 deletions

View File

@@ -17,6 +17,10 @@ class SharePermissionEditor extends React.Component {
return Utils.sharePerms(permission);
}
translateExplanation = (explanation) => {
return Utils.sharePermsExplanation(explanation);
}
render() {
return (
<SelectEditor
@@ -26,6 +30,7 @@ class SharePermissionEditor extends React.Component {
currentOption={this.props.currentPermission}
onOptionChanged={this.props.onPermissionChanged}
translateOption={this.translatePermission}
translateExplanation={this.translateExplanation}
/>
);
}