mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 14:36:00 -03:30
Rename AccessList to OrganizationAccessList and fix paths.
This commit is contained in:
@@ -13,12 +13,12 @@ import {
|
|||||||
Link
|
Link
|
||||||
} from 'react-router-dom';
|
} from 'react-router-dom';
|
||||||
|
|
||||||
import Pagination from '../Pagination';
|
import Pagination from '../../../components/Pagination';
|
||||||
import DataListToolbar from '../DataListToolbar';
|
import DataListToolbar from '../../../components/DataListToolbar';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
parseQueryString,
|
parseQueryString,
|
||||||
} from '../../qs';
|
} from '../../../qs';
|
||||||
|
|
||||||
const userRolesWrapperStyle = {
|
const userRolesWrapperStyle = {
|
||||||
display: 'flex',
|
display: 'flex',
|
||||||
@@ -82,7 +82,7 @@ const UserName = ({ value, url }) => {
|
|||||||
return username;
|
return username;
|
||||||
};
|
};
|
||||||
|
|
||||||
class AccessList extends React.Component {
|
class OrganizationAccessList extends React.Component {
|
||||||
columns = [
|
columns = [
|
||||||
{ name: i18nMark('Name'), key: 'first_name', isSortable: true },
|
{ name: i18nMark('Name'), key: 'first_name', isSortable: true },
|
||||||
{ name: i18nMark('Username'), key: 'username', isSortable: true },
|
{ name: i18nMark('Username'), key: 'username', isSortable: true },
|
||||||
@@ -426,9 +426,9 @@ class AccessList extends React.Component {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
AccessList.propTypes = {
|
OrganizationAccessList.propTypes = {
|
||||||
getAccessList: PropTypes.func.isRequired,
|
getAccessList: PropTypes.func.isRequired,
|
||||||
removeRole: PropTypes.func.isRequired,
|
removeRole: PropTypes.func.isRequired,
|
||||||
};
|
};
|
||||||
|
|
||||||
export default AccessList;
|
export default OrganizationAccessList;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import AccessList from '../../../../components/AccessList';
|
import OrganizationAccessList from '../../components/OrganizationAccessList';
|
||||||
|
|
||||||
class OrganizationAccess extends React.Component {
|
class OrganizationAccess extends React.Component {
|
||||||
constructor (props) {
|
constructor (props) {
|
||||||
@@ -27,7 +27,7 @@ class OrganizationAccess extends React.Component {
|
|||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AccessList
|
<OrganizationAccessList
|
||||||
getAccessList={this.getOrgAccessList}
|
getAccessList={this.getOrgAccessList}
|
||||||
removeRole={this.removeRole}
|
removeRole={this.removeRole}
|
||||||
match={match}
|
match={match}
|
||||||
|
|||||||
Reference in New Issue
Block a user