Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix: gitlab external link icon

zaralX856c88349e65
diff --git a/apps/web/src/components/external-links/external-links-accordion.tsx b/apps/web/src/components/external-links/external-links-accordion.tsx
index cee165e57..9d8c8ea1e 100644
--- a/apps/web/src/components/external-links/external-links-accordion.tsx
+++ b/apps/web/src/components/external-links/external-links-accordion.tsx
@@ -8,6 +8,7 @@ import {
import { useMemo, useState } from "react";
import { useTranslation } from "react-i18next";
import { GithubIcon } from "@/components/icons/github-icon";
+import { GitlabIcon } from "@/components/icons/gitlab-icon";
import { Button } from "@/components/ui/button";
import {
Collapsible,
@@ -29,6 +30,14 @@ function isGiteaResourceLink(link: ExternalLink) {
return from === "gitea" || from === "gitea-import";
}
+function isGitlabResourceLink(link: ExternalLink) {
+ if (link.integration?.type === "gitlab") {
+ return true;
+ }
+ const from = link.metadata?.createdFrom;
+ return from === "gitlab" || from === "gitlab-import";
+}
+
export function ExternalLinksAccordion({
externalLinks,
isLoading,
@@ -131,6 +140,8 @@ export function ExternalLinksAccordion({
>
{isGiteaResourceLink(link) ? (
<FolderGit className="size-4 flex-shrink-0 text-muted-foreground" />
+ ) : isGitlabResourceLink(link) ? (
+ <GitlabIcon className="size-4 flex-shrink-0 text-muted-foreground" />
) : (
<GithubIcon className="size-4 flex-shrink-0 text-muted-foreground" />
)}