mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 07:26:45 +00:00
add description tooltip
This commit is contained in:
+9
-3
@@ -1,5 +1,5 @@
|
|||||||
import { BsMicrosoftTeams, BsSlack } from "react-icons/bs";
|
import { BsMicrosoftTeams, BsSlack } from "react-icons/bs";
|
||||||
import { faEllipsis, faGear, faPlus } from "@fortawesome/free-solid-svg-icons";
|
import { faEllipsis, faGear, faInfoCircle, faPlus } from "@fortawesome/free-solid-svg-icons";
|
||||||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import { twMerge } from "tailwind-merge";
|
import { twMerge } from "tailwind-merge";
|
||||||
@@ -21,6 +21,7 @@ import {
|
|||||||
TBody,
|
TBody,
|
||||||
Td,
|
Td,
|
||||||
THead,
|
THead,
|
||||||
|
Tooltip,
|
||||||
Tr
|
Tr
|
||||||
} from "@app/components/v2";
|
} from "@app/components/v2";
|
||||||
import { OrgPermissionActions, OrgPermissionSubjects, useOrganization } from "@app/context";
|
import { OrgPermissionActions, OrgPermissionSubjects, useOrganization } from "@app/context";
|
||||||
@@ -173,15 +174,20 @@ export const OrgWorkflowIntegrationTab = withPermission(
|
|||||||
)}
|
)}
|
||||||
{workflowIntegrations?.map((workflowIntegration) => (
|
{workflowIntegrations?.map((workflowIntegration) => (
|
||||||
<Tr key={workflowIntegration.id}>
|
<Tr key={workflowIntegration.id}>
|
||||||
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis hover:overflow-auto hover:break-all">
|
<Td className="flex max-w-xs items-center gap-2 overflow-hidden text-ellipsis hover:overflow-auto hover:break-all">
|
||||||
{workflowIntegration.integration === WorkflowIntegrationPlatform.SLACK ? (
|
{workflowIntegration.integration === WorkflowIntegrationPlatform.SLACK ? (
|
||||||
<BsSlack />
|
<BsSlack />
|
||||||
) : (
|
) : (
|
||||||
<BsMicrosoftTeams />
|
<BsMicrosoftTeams />
|
||||||
)}
|
)}
|
||||||
<div className="ml-2 capitalize">
|
<div className="capitalize">
|
||||||
{workflowIntegration.integration.replaceAll("-", " ")}
|
{workflowIntegration.integration.replaceAll("-", " ")}
|
||||||
</div>
|
</div>
|
||||||
|
{workflowIntegration.description && (
|
||||||
|
<Tooltip content={workflowIntegration.description}>
|
||||||
|
<FontAwesomeIcon icon={faInfoCircle} className="text-gray-400" size="sm" />
|
||||||
|
</Tooltip>
|
||||||
|
)}
|
||||||
</Td>
|
</Td>
|
||||||
<Td>{workflowIntegration.slug}</Td>
|
<Td>{workflowIntegration.slug}</Td>
|
||||||
<Td>{renderStatus(workflowIntegration.status)}</Td>
|
<Td>{renderStatus(workflowIntegration.status)}</Td>
|
||||||
|
|||||||
Reference in New Issue
Block a user