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: () =>
|
||||
request<ApiResponse<unknown>>("/api/dashboard/setup/reset", {
|
||||
request<ApiResponse<unknown>>("/api/setup/reset", {
|
||||
method: "POST",
|
||||
}),
|
||||
|
||||
|
||||
@@ -660,7 +660,7 @@ export function EmeraldApiKeyStep({
|
||||
return (
|
||||
<div className="flex flex-1 flex-col gap-5">
|
||||
<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
|
||||
href="https://emeraldsrv.dev"
|
||||
target="_blank"
|
||||
@@ -671,7 +671,7 @@ export function EmeraldApiKeyStep({
|
||||
</a>.
|
||||
</p>
|
||||
<div className="space-y-2">
|
||||
<Label htmlFor="emeraldApiKey">Emerald API key</Label>
|
||||
<Label htmlFor="emeraldApiKey">Emerald API key (Optional)</Label>
|
||||
<Input
|
||||
id="emeraldApiKey"
|
||||
type="password"
|
||||
@@ -687,10 +687,10 @@ export function EmeraldApiKeyStep({
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
disabled={validating || !values.emeraldApiKey}
|
||||
disabled={validating}
|
||||
onClick={onValidate}
|
||||
>
|
||||
{validating ? "Checking…" : "Save key"}
|
||||
{validating ? "Checking…" : (values.emeraldApiKey ? "Verify key" : "Skip step")}
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user