Can access user account settings from administrators list

This commit is contained in:
Pierre HUBERT 2021-05-15 09:42:35 +02:00
parent b4dc4cd45b
commit 9adb230d60

View File

@ -12,11 +12,14 @@ import {
TableRow,
TableCell,
TableBody,
IconButton,
} from "@material-ui/core";
import React from "react";
import { AccountHelper, AdminAccount } from "../../helpers/AccountHelper";
import { AsyncWidget } from "../widgets/AsyncWidget";
import { TimestampWidget } from "../widgets/TimestampWidget";
import SettingsIcon from "@material-ui/icons/Settings";
import { Link } from "react-router-dom";
export class AccountsListRoute extends React.Component<
{},
@ -62,6 +65,8 @@ export class AccountsListRoute extends React.Component<
<TableCell align="right">
Account creation
</TableCell>
<TableCell align="right">Roles</TableCell>
<TableCell></TableCell>
</TableRow>
</TableHead>
<TableBody>
@ -73,6 +78,16 @@ export class AccountsListRoute extends React.Component<
<TableCell align="right">
<TimestampWidget time={row.time_create} />
</TableCell>
<TableCell align="right">
{row.roles.length}
</TableCell>
<TableCell>
<Link to={"/accounts/" + row.id}>
<IconButton>
<SettingsIcon />
</IconButton>
</Link>
</TableCell>
</TableRow>
))}
</TableBody>