Show own groups in me page

This commit is contained in:
René Pfeuffer
2019-02-18 08:47:29 +01:00
parent 2bacf78912
commit d7b1eda859

View File

@@ -1,7 +1,11 @@
// @flow
import React from "react";
import type { Me } from "@scm-manager/ui-types";
import { MailLink, AvatarWrapper, AvatarImage } from "@scm-manager/ui-components";
import {
MailLink,
AvatarWrapper,
AvatarImage
} from "@scm-manager/ui-components";
import { compose } from "redux";
import { translate } from "react-i18next";
@@ -29,19 +33,31 @@ class ProfileInfo extends React.Component<Props, State> {
<table className="table">
<tbody>
<tr>
<td className="has-text-weight-semibold">{t("profile.username")}</td>
<td className="has-text-weight-semibold">
{t("profile.username")}
</td>
<td>{me.name}</td>
</tr>
<tr>
<td className="has-text-weight-semibold">{t("profile.displayName")}</td>
<td className="has-text-weight-semibold">
{t("profile.displayName")}
</td>
<td>{me.displayName}</td>
</tr>
<tr>
<td className="has-text-weight-semibold">{t("profile.mail")}</td>
<td className="has-text-weight-semibold">
{t("profile.mail")}
</td>
<td>
<MailLink address={me.mail} />
</td>
</tr>
<tr>
<td className="has-text-weight-semibold">
{t("profile.groups")}
</td>
<td>{me.groups.join(", ")}</td>
</tr>
</tbody>
</table>
</div>