diff --git a/gui/src/components/provider-workspace/ProviderAuthPanel.tsx b/gui/src/components/provider-workspace/ProviderAuthPanel.tsx index 6a19c5f0d2..453e055cdf 100644 --- a/gui/src/components/provider-workspace/ProviderAuthPanel.tsx +++ b/gui/src/components/provider-workspace/ProviderAuthPanel.tsx @@ -51,6 +51,10 @@ export default function ProviderAuthPanel({ const [addingKey, setAddingKey] = useState(false); const [newKey, setNewKey] = useState(""); const [keyBusy, setKeyBusy] = useState(false); + const [importingJson, setImportingJson] = useState(false); + const [importJsonText, setImportJsonText] = useState(""); + const [importBusy, setImportBusy] = useState(false); + const [importResult, setImportResult] = useState<{ imported: number; failed: number } | null>(null); const [reserveQuotaSlots, setReserveQuotaSlots] = useState(false); const deviceCodeCopy = useCopyFeedback(); @@ -278,11 +282,93 @@ export default function ProviderAuthPanel({ {accountLoadState === "ready" && loggedIn && accounts.length === 0 && (
{t("pws.noAccounts")}
)} - {loggedIn && ( - + {importingJson ? ( +
+