mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
Improve ux on overview
This commit is contained in:
committed by
René Pfeuffer
parent
0aa82887d2
commit
237c48356a
@@ -22,22 +22,26 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
import React from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { CardColumnGroup, RepositoryEntry } from "@scm-manager/ui-components";
|
||||
import { RepositoryGroup } from "@scm-manager/ui-types";
|
||||
import { Icon } from "@scm-manager/ui-components";
|
||||
import { WithTranslation, withTranslation } from "react-i18next";
|
||||
import {Link} from "react-router-dom";
|
||||
import {CardColumnGroup, Icon, RepositoryEntry} from "@scm-manager/ui-components";
|
||||
import {RepositoryGroup} from "@scm-manager/ui-types";
|
||||
import {WithTranslation, withTranslation} from "react-i18next";
|
||||
import styled from "styled-components";
|
||||
|
||||
type Props = WithTranslation & {
|
||||
group: RepositoryGroup;
|
||||
};
|
||||
|
||||
const SizedIcon = styled(Icon)`
|
||||
font-size: 1.33rem;
|
||||
`;
|
||||
|
||||
class RepositoryGroupEntry extends React.Component<Props> {
|
||||
render() {
|
||||
const { group, t } = this.props;
|
||||
const settingsLink = group.namespace?._links?.permissions && (
|
||||
<Link to={`/namespace/${group.name}/settings`}>
|
||||
<Icon color={"is-link"} name={"cog"} title={t("repositoryOverview.settings.tooltip")} />
|
||||
<SizedIcon color={"is-link"} name={"cog"} title={t("repositoryOverview.settings.tooltip")} />
|
||||
</Link>
|
||||
);
|
||||
const namespaceHeader = (
|
||||
|
||||
@@ -126,6 +126,8 @@ class Overview extends React.Component<Props> {
|
||||
link="repos"
|
||||
label={t("overview.createButton")}
|
||||
testId="repository-overview"
|
||||
searchPlaceholder={t("overview.searchRepository")}
|
||||
filterPlaceholder={t("overview.filterNamespace")}
|
||||
/>
|
||||
</PageActions>
|
||||
</Page>
|
||||
|
||||
Reference in New Issue
Block a user