- setApiKey(event.target.value)} />
+
+
+
+
+ {t("Console → API Keys")}
+
+ ) : null}>
+ changeConnection(event.target.value, apiURL, domain)} />
+
+ {discovery === "loading" ? {t("Loading templates…")}
: null}
+ {discovery === "error" ? {t("Could not load templates. Check the key and provider connection.")}
: null}
+ {discovery === "ready" && templates.length === 0 ? {t("No templates are visible to this key.")}
: null}
+
+
-
- setTemplate(event.target.value)} placeholder="oac-runtime:0f1e2d3c-4b5a-6978-8a9b-0c1d2e3f4a5b" autoComplete="off" spellCheck={false} aria-invalid={Boolean(template && !validTemplate(template.trim()))} />
+ {buildDiscovery === "loading" ? {t("Loading ready builds…")}
: null}
+ {buildDiscovery === "error" ? {t("Could not load builds.")}
: null}
+ {buildDiscovery === "ready" && builds.length === 0 ? {t("This template has no ready builds.")}
: null}
+
+
-
- setAPIURL(event.target.value)} placeholder="https://sandbox.example.com" autoComplete="off" spellCheck={false} />
+
+ changeConnection(apiKey, event.target.value, domain)} placeholder="https://sandbox.example.com" autoComplete="off" spellCheck={false} />
- setDomain(event.target.value)} placeholder="sandbox.example.com" autoComplete="off" spellCheck={false} />
+ changeConnection(apiKey, apiURL, event.target.value)} placeholder="sandbox.example.com" autoComplete="off" spellCheck={false} />