show link to provider settings

This commit is contained in:
miloschwartz
2026-08-11 16:38:16 -04:00
parent f7aca85417
commit 1782f31075
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -1921,6 +1921,7 @@
"aiResourceProvidersUpdated": "Providers updated",
"aiResourceProvidersErrorUpdate": "Failed to update providers",
"aiResourceProviderEditDescription": "Choose how this provider's models are exposed on this resource.",
"viewProviderSettings": "View Provider Settings",
"aiResourceProviderMode": "Access mode",
"aiResourceProviderModeInherit": "Inherit",
"aiResourceProviderModeSelect": "Select",
+16
View File
@@ -42,6 +42,7 @@ import { zodResolver } from "@hookform/resolvers/zod";
import { useQuery } from "@tanstack/react-query";
import { Plus, XIcon } from "lucide-react";
import { useTranslations } from "next-intl";
import Link from "next/link";
import { useEffect, useMemo, useRef, useState } from "react";
import { useForm } from "react-hook-form";
import { z } from "zod";
@@ -178,6 +179,7 @@ export function AiProviderAttachments({
{editing && (
<EditAttachmentCredenza
orgId={orgId}
attachment={editing}
open={editingProviderId !== null}
onOpenChange={(open) => {
@@ -283,11 +285,13 @@ type EditFormValues = {
};
function EditAttachmentCredenza({
orgId,
attachment,
open,
onOpenChange,
onSave
}: {
orgId: string;
attachment: AiProviderAttachmentValue;
open: boolean;
onOpenChange: (open: boolean) => void;
@@ -565,6 +569,18 @@ function EditAttachmentCredenza({
</Form>
</CredenzaBody>
<CredenzaFooter>
<Button
variant="link"
size="sm"
className="mr-auto px-0"
asChild
>
<Link
href={`/${orgId}/settings/ai-providers/${attachment.providerId}`}
>
{t("viewProviderSettings")}
</Link>
</Button>
<CredenzaClose asChild>
<Button variant="outline">{t("close")}</Button>
</CredenzaClose>