mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
added creationDate and lastModified to group details
This commit is contained in:
@@ -3,6 +3,7 @@ import React from "react";
|
|||||||
import type { Group } from "../../types/Group";
|
import type { Group } from "../../types/Group";
|
||||||
import { translate } from "react-i18next";
|
import { translate } from "react-i18next";
|
||||||
import GroupMember from "./GroupMember";
|
import GroupMember from "./GroupMember";
|
||||||
|
import DateFromNow from "../../../components/DateFromNow";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
group: Group,
|
group: Group,
|
||||||
@@ -27,6 +28,18 @@ class Details extends React.Component<Props> {
|
|||||||
<td>{t("group.type")}</td>
|
<td>{t("group.type")}</td>
|
||||||
<td>{group.type}</td>
|
<td>{group.type}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{t("group.creationDate")}</td>
|
||||||
|
<td>
|
||||||
|
<DateFromNow date={group.creationDate} />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>{t("group.lastModified")}</td>
|
||||||
|
<td>
|
||||||
|
<DateFromNow date={group.lastModified} />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
{this.renderMembers()}
|
{this.renderMembers()}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user