Added ESRV API KEY
This commit is contained in:
1 parent
ed57dc2d4f
commit
ba41125eae
2 files changed
+5
-5
No files matched your search
@@ -585,7 +585,7 @@ export const api = {
|
|||||||
),
|
),
|
||||||
|
|
||||||
resetDashboard: () =>
|
resetDashboard: () =>
|
||||||
request<ApiResponse<unknown>>("/api/dashboard/setup/reset", {
|
request<ApiResponse<unknown>>("/api/setup/reset", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ export function EmeraldApiKeyStep({
|
|||||||
return (
|
return (
|
||||||
<div className="flex flex-1 flex-col gap-5">
|
<div className="flex flex-1 flex-col gap-5">
|
||||||
<p className="text-sm leading-relaxed text-muted-foreground">
|
<p className="text-sm leading-relaxed text-muted-foreground">
|
||||||
An Emerald Services API key is required to use the one-click addon installer in the dashboard. You can get yours from the{" "}
|
An Emerald Services API key is optional, but required to use the one-click addon installer in the dashboard. You can get yours from the{" "}
|
||||||
<a
|
<a
|
||||||
href="https://emeraldsrv.dev"
|
href="https://emeraldsrv.dev"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
@@ -671,7 +671,7 @@ export function EmeraldApiKeyStep({
|
|||||||
</a>.
|
</a>.
|
||||||
</p>
|
</p>
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
<Label htmlFor="emeraldApiKey">Emerald API key</Label>
|
<Label htmlFor="emeraldApiKey">Emerald API key (Optional)</Label>
|
||||||
<Input
|
<Input
|
||||||
id="emeraldApiKey"
|
id="emeraldApiKey"
|
||||||
type="password"
|
type="password"
|
||||||
@@ -687,10 +687,10 @@ export function EmeraldApiKeyStep({
|
|||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
disabled={validating || !values.emeraldApiKey}
|
disabled={validating}
|
||||||
onClick={onValidate}
|
onClick={onValidate}
|
||||||
>
|
>
|
||||||
{validating ? "Checking…" : "Save key"}
|
{validating ? "Checking…" : (values.emeraldApiKey ? "Verify key" : "Skip step")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user