mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-17 15:33:12 +09:00
27 lines
593 B
React
27 lines
593 B
React
import React, { Component } from "react";
|
|
import { Card } from "antd";
|
|
import { listSlaves, listInstances, listPermissions } from "../../util/wslink";
|
|
import DataTable from "../../components/data-table";
|
|
|
|
export class PermissionsTable extends Component {
|
|
navigate(url) {
|
|
this.props.history.push(url);
|
|
}
|
|
|
|
render() {
|
|
return <Card>
|
|
<h2>Permissions</h2>
|
|
<DataTable
|
|
DataFunction={listPermissions}
|
|
TableProps={{
|
|
onRow: (record, rowIndex) => ({
|
|
onClick: event => {
|
|
this.navigate(`/permissions/${record.id}/view`);
|
|
},
|
|
}),
|
|
}}
|
|
/>
|
|
</Card>;
|
|
}
|
|
}
|