mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 09:33:34 -06:00
adding permissions component
This commit is contained in:
parent
61cac5fd61
commit
b283845e4e
20
public/app/features/datasources/DataSourcePermissions.tsx
Normal file
20
public/app/features/datasources/DataSourcePermissions.tsx
Normal file
@ -0,0 +1,20 @@
|
||||
import React, { PureComponent } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
export interface Props {}
|
||||
|
||||
export class DataSourcePermissions extends PureComponent<Props> {
|
||||
render() {
|
||||
return (
|
||||
<div>
|
||||
<h3>Permissions</h3>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
function mapStateToProps(state) {
|
||||
return {};
|
||||
}
|
||||
|
||||
export default connect(mapStateToProps)(DataSourcePermissions);
|
@ -2,6 +2,7 @@ import React, { PureComponent } from 'react';
|
||||
import { hot } from 'react-hot-loader';
|
||||
import { connect } from 'react-redux';
|
||||
import PageHeader from '../../core/components/PageHeader/PageHeader';
|
||||
import DataSourcePermissions from './DataSourcePermissions';
|
||||
import { DataSource, NavModel } from 'app/types';
|
||||
import { loadDataSource } from './state/actions';
|
||||
import { getNavModel } from '../../core/selectors/navModel';
|
||||
@ -45,7 +46,7 @@ export class EditDataSourcePage extends PureComponent<Props> {
|
||||
renderPage() {
|
||||
switch (this.getCurrentPage()) {
|
||||
case PageTypes.Permissions:
|
||||
return <div>Permissions</div>;
|
||||
return <DataSourcePermissions />;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user