Fix web interface indents

Use project standard of tabs for indents.
This commit is contained in:
Hornwitser committed 2020-09-28 05:51:15 +02:00
1 parent 94200433cc
commit 8dce1dd0fd
16 files changed
+1267 -1267

No files matched your search

+36 -36
View File
@@ -4,40 +4,40 @@ import { listSlaves, listInstances, listRoles, createRole } from "../../util/wsl
import DataTable from "../../components/data-table"
export class RolesTable extends Component {
constructor(props) {
super(props)
}
navigate(url) {
this.props.history.push(url);
}
render() {
return <Card>
<h2>Roles</h2>
<DataTable
AddRecord={{
fields: [{
dataIndex: "name",
title: "Name"
},{
dataIndex: "description",
title: "Description"
}],
insert: async args => {
let response = await createRole({name: args.name, description: args.description})
console.log("Created role",response)
}
}}
DataFunction={listRoles}
TableProps={{
onRow: (record, rowIndex) => {
return {
onClick: event => {
this.navigate(`/roles/${record.id}/view`)
}
}
}
}}
/>
</Card>
}
constructor(props) {
super(props)
}
navigate(url) {
this.props.history.push(url);
}
render() {
return <Card>
<h2>Roles</h2>
<DataTable
AddRecord={{
fields: [{
dataIndex: "name",
title: "Name"
},{
dataIndex: "description",
title: "Description"
}],
insert: async args => {
let response = await createRole({name: args.name, description: args.description})
console.log("Created role",response)
}
}}
DataFunction={listRoles}
TableProps={{
onRow: (record, rowIndex) => {
return {
onClick: event => {
this.navigate(`/roles/${record.id}/view`)
}
}
}
}}
/>
</Card>
}
}