mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 23:45: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>
|
||||
|
||||
@@ -66,7 +66,7 @@ class RepositoryEntry extends React.Component<Props> {
|
||||
const { repository } = this.props;
|
||||
return (
|
||||
<>
|
||||
<ExtensionPoint name="repository.card.beforeTitle" props={{repository}} /> <strong>{repository.name}</strong>
|
||||
<ExtensionPoint name="repository.card.beforeTitle" props={{ repository }} /> <strong>{repository.name}</strong>
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user