mirror of
https://gitlab.com/comunic/comunicconsole
synced 2024-11-27 07:49:22 +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,
|
TableRow,
|
||||||
TableCell,
|
TableCell,
|
||||||
TableBody,
|
TableBody,
|
||||||
|
IconButton,
|
||||||
} from "@material-ui/core";
|
} from "@material-ui/core";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { AccountHelper, AdminAccount } from "../../helpers/AccountHelper";
|
import { AccountHelper, AdminAccount } from "../../helpers/AccountHelper";
|
||||||
import { AsyncWidget } from "../widgets/AsyncWidget";
|
import { AsyncWidget } from "../widgets/AsyncWidget";
|
||||||
import { TimestampWidget } from "../widgets/TimestampWidget";
|
import { TimestampWidget } from "../widgets/TimestampWidget";
|
||||||
|
import SettingsIcon from "@material-ui/icons/Settings";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
|
||||||
export class AccountsListRoute extends React.Component<
|
export class AccountsListRoute extends React.Component<
|
||||||
{},
|
{},
|
||||||
@ -62,6 +65,8 @@ export class AccountsListRoute extends React.Component<
|
|||||||
<TableCell align="right">
|
<TableCell align="right">
|
||||||
Account creation
|
Account creation
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
<TableCell align="right">Roles</TableCell>
|
||||||
|
<TableCell></TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHead>
|
</TableHead>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
@ -73,6 +78,16 @@ export class AccountsListRoute extends React.Component<
|
|||||||
<TableCell align="right">
|
<TableCell align="right">
|
||||||
<TimestampWidget time={row.time_create} />
|
<TimestampWidget time={row.time_create} />
|
||||||
</TableCell>
|
</TableCell>
|
||||||
|
<TableCell align="right">
|
||||||
|
{row.roles.length}
|
||||||
|
</TableCell>
|
||||||
|
<TableCell>
|
||||||
|
<Link to={"/accounts/" + row.id}>
|
||||||
|
<IconButton>
|
||||||
|
<SettingsIcon />
|
||||||
|
</IconButton>
|
||||||
|
</Link>
|
||||||
|
</TableCell>
|
||||||
</TableRow>
|
</TableRow>
|
||||||
))}
|
))}
|
||||||
</TableBody>
|
</TableBody>
|
||||||
|
Loading…
Reference in New Issue
Block a user