diff --git a/gradle/changelog/always_show_footer.yaml b/gradle/changelog/always_show_footer.yaml new file mode 100644 index 0000000000..fa5d341770 --- /dev/null +++ b/gradle/changelog/always_show_footer.yaml @@ -0,0 +1,2 @@ +- type: changed + descripion: Always show SCM-Manager footer ([#1826](https://github.com/scm-manager/scm-manager/pull/1826)) diff --git a/scm-ui/ui-components/src/avatar/AvatarImage.tsx b/scm-ui/ui-components/src/avatar/AvatarImage.tsx index ea47002f8b..b11a39db9d 100644 --- a/scm-ui/ui-components/src/avatar/AvatarImage.tsx +++ b/scm-ui/ui-components/src/avatar/AvatarImage.tsx @@ -23,8 +23,7 @@ */ import React, { FC } from "react"; import { Image } from ".."; -import { Person } from "./Avatar"; -import { EXTENSION_POINT } from "./Avatar"; +import { EXTENSION_POINT, Person } from "./Avatar"; import { useBinder } from "@scm-manager/ui-extensions"; type Props = { diff --git a/scm-ui/ui-components/src/layout/Footer.tsx b/scm-ui/ui-components/src/layout/Footer.tsx index 12e71e373d..bc76bc468b 100644 --- a/scm-ui/ui-components/src/layout/Footer.tsx +++ b/scm-ui/ui-components/src/layout/Footer.tsx @@ -80,29 +80,34 @@ const TitleWithAvatar: FC = ({ me }) => ( const Footer: FC = ({ me, version, links }) => { const [t] = useTranslation("commons"); const binder = useBinder(); - if (!me) { - return null; - } const extensionProps = { me, url: "/me", links }; let meSectionTile; - if (binder.hasExtension(EXTENSION_POINT)) { - meSectionTile = ; - } else { - meSectionTile = ; + if (me) { + if (binder.hasExtension(EXTENSION_POINT)) { + meSectionTile = ; + } else { + meSectionTile = ; + } } return (