mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-16 15:30:41 +09:00
31 lines
648 B
React
31 lines
648 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 {
|
|
constructor(props) {
|
|
super(props)
|
|
}
|
|
navigate(url) {
|
|
this.props.history.push(url);
|
|
}
|
|
render() {
|
|
return <Card>
|
|
<h2>Permissions</h2>
|
|
<DataTable
|
|
DataFunction={listPermissions}
|
|
TableProps={{
|
|
onRow: (record, rowIndex) => {
|
|
return {
|
|
onClick: event => {
|
|
this.navigate(`/permissions/${record.id}/view`)
|
|
}
|
|
}
|
|
}
|
|
}}
|
|
/>
|
|
</Card>
|
|
}
|
|
}
|