mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
add second extension point for repository favorite
This commit is contained in:
@@ -2,6 +2,7 @@ import React from "react";
|
||||
import { WithTranslation, withTranslation } from "react-i18next";
|
||||
import { Repository } from "@scm-manager/ui-types";
|
||||
import { DateFromNow, MailLink } from "@scm-manager/ui-components";
|
||||
import { ExtensionPoint } from "@scm-manager/ui-extensions";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
repository: Repository;
|
||||
@@ -15,7 +16,9 @@ class RepositoryDetailTable extends React.Component<Props> {
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{t("repository.name")}</th>
|
||||
<td>{repository.name}</td>
|
||||
<td>
|
||||
<ExtensionPoint name={"repository.details.beforeName"} props={{ repository }} /> {repository.name}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{t("repository.type")}</th>
|
||||
|
||||
Reference in New Issue
Block a user