Commit 1d8ce367 by Johannes Schill Committed by Daniel Lee

dashfolders: Remove the PermissionsInner-strategy since we have a container for…

dashfolders: Remove the PermissionsInner-strategy since we have a container for this route now #10275
parent a5d441e7
...@@ -3,8 +3,6 @@ import PermissionsList from './PermissionsList'; ...@@ -3,8 +3,6 @@ import PermissionsList from './PermissionsList';
import _ from 'lodash'; import _ from 'lodash';
import DevTools from 'mobx-react-devtools'; import DevTools from 'mobx-react-devtools';
import { inject, observer } from 'mobx-react'; import { inject, observer } from 'mobx-react';
import { Provider } from 'mobx-react';
import { store } from 'app/stores/store';
// import UserPicker from 'app/core/components/UserPicker/UserPicker'; // import UserPicker from 'app/core/components/UserPicker/UserPicker';
export interface DashboardAcl { export interface DashboardAcl {
...@@ -33,19 +31,9 @@ export interface IProps { ...@@ -33,19 +31,9 @@ export interface IProps {
isFolder: boolean; isFolder: boolean;
} }
class Permissions extends Component<IProps, any> {
render() {
return (
<Provider {...store}>
<PermissionsInner {...this.props} />
</Provider>
);
}
}
@inject('permissions') @inject('permissions')
@observer @observer
class PermissionsInner extends Component<IProps, any> { class Permissions extends Component<IProps, any> {
// TODO Remove Inner from Name when we get access via ReactContainer // TODO Remove Inner from Name when we get access via ReactContainer
dashboardId: any; dashboardId: any;
meta: any; meta: any;
...@@ -130,7 +118,7 @@ class PermissionsInner extends Component<IProps, any> { ...@@ -130,7 +118,7 @@ class PermissionsInner extends Component<IProps, any> {
} }
render() { render() {
console.log('PermissionsInner render'); console.log('Permissions render');
const { error, permissions } = this.props; const { error, permissions } = this.props;
const { newType } = this.state; const { newType } = this.state;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment