Remove button removed from the namespace that contains the current user.
Optimizations in how mixins are composed. The refresh should now be up to 2x faster for deeper hierarchies.
This commit is contained in:
parent
6ae9143c22
commit
a46c8fa9c3
15 changed files with 764 additions and 680 deletions
|
@ -683,21 +683,24 @@ export class NavDropdown extends Component {
|
|||
}
|
||||
|
||||
|
||||
export const requiresAuthenticatedUser = createComponentMixin([], [withPageHelpers], (TargetClass, InnerClass) => {
|
||||
class RequiresAuthenticatedUser extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
props.sectionContent.ensureAuthenticated();
|
||||
export const requiresAuthenticatedUser = createComponentMixin({
|
||||
deps: [withPageHelpers],
|
||||
decoratorFn: (TargetClass, InnerClass) => {
|
||||
class RequiresAuthenticatedUser extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
props.sectionContent.ensureAuthenticated();
|
||||
}
|
||||
|
||||
render() {
|
||||
return <TargetClass {...this.props}/>
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return <TargetClass {...this.props}/>
|
||||
}
|
||||
return {
|
||||
cls: RequiresAuthenticatedUser
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
cls: RequiresAuthenticatedUser
|
||||
};
|
||||
});
|
||||
|
||||
export function getLanguageChooser(t) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue