mirror of
https://gitlab.com/comunic/comunicconsole
synced 2024-12-25 13:08:52 +00:00
Can access user account settings from administrators list
This commit is contained in:
parent
b4dc4cd45b
commit
9adb230d60
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user