mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 14:27:59 +00:00
Update repo name display owner/repo instead just the repo
This commit is contained in:
@@ -355,10 +355,8 @@ export default function GitHubCreateIntegrationPage() {
|
|||||||
{integrationAuthApps.length > 0 ? (
|
{integrationAuthApps.length > 0 ? (
|
||||||
<div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none data-[placeholder]:text-mineshaft-200">
|
<div className="inline-flex w-full cursor-pointer items-center justify-between rounded-md border border-mineshaft-600 bg-mineshaft-900 px-3 py-2 font-inter text-sm font-normal text-bunker-200 outline-none data-[placeholder]:text-mineshaft-200">
|
||||||
{repoIds.length === 1
|
{repoIds.length === 1
|
||||||
? integrationAuthApps?.find(
|
? integrationAuthApps?.reduce(
|
||||||
(integrationAuthApp) =>
|
(acc, { appId, name, owner }) => repoIds[0] === appId ? `${owner}/${name}`: acc, "")
|
||||||
repoIds[0] === String(integrationAuthApp.appId)
|
|
||||||
)?.name
|
|
||||||
: `${repoIds.length} repositories selected`}
|
: `${repoIds.length} repositories selected`}
|
||||||
<FontAwesomeIcon icon={faAngleDown} className="text-xs" />
|
<FontAwesomeIcon icon={faAngleDown} className="text-xs" />
|
||||||
</div>
|
</div>
|
||||||
@@ -406,7 +404,7 @@ export default function GitHubCreateIntegrationPage() {
|
|||||||
iconPos="left"
|
iconPos="left"
|
||||||
className="w-[28.4rem] text-sm"
|
className="w-[28.4rem] text-sm"
|
||||||
>
|
>
|
||||||
{integrationAuthApp.name}
|
{integrationAuthApp.owner}/{integrationAuthApp.name}
|
||||||
</DropdownMenuItem>
|
</DropdownMenuItem>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
@@ -478,7 +476,7 @@ export default function GitHubCreateIntegrationPage() {
|
|||||||
key={`repo-id-${app.appId}`}
|
key={`repo-id-${app.appId}`}
|
||||||
className="w-[28.4rem] text-sm"
|
className="w-[28.4rem] text-sm"
|
||||||
>
|
>
|
||||||
{app.name}
|
{app.owner}/{app.name}
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user