Fixed bug causing multiple requests for changesets

Fixed bug related to displaying errors

additionally: implemented i18n
This commit is contained in:
Philipp Czora
2018-09-27 16:29:33 +02:00
parent 77ed7581d4
commit 360bb807b9
12 changed files with 122 additions and 71 deletions

View File

@@ -0,0 +1,27 @@
//@flow
import React from "react";
import type { Changeset } from "@scm-manager/ui-types";
type Props = {
changeset: Changeset
};
export default class ChangesetAuthor extends React.Component<Props> {
render() {
const { changeset } = this.props;
return (
<div>
{changeset.author.name}{" "}
<a
className="is-hidden-mobile"
href={"mailto:" + changeset.author.mail}
>
&lt;
{changeset.author.mail}
&gt;
</a>
</div>
);
}
}