mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
permission explanation
This commit is contained in:
@@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user