Skip to content

Commit 993a95a

Browse files
committed
Restore ENV
1 parent 83f19e7 commit 993a95a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/pages/Settings.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ export default function SettingsPage() {
201201
className="font-mono"
202202
disabled={
203203
isLoadingCredentials ||
204-
credentialSource === "noenv"
204+
credentialSource === "env"
205205
}
206206
placeholder="https://quackpy.fly.dev"
207207
{...field}
@@ -230,7 +230,7 @@ export default function SettingsPage() {
230230
className="font-mono"
231231
disabled={
232232
isLoadingCredentials ||
233-
credentialSource === "noenv"
233+
credentialSource === "env"
234234
}
235235
placeholder="default"
236236
autoComplete="username"
@@ -257,7 +257,7 @@ export default function SettingsPage() {
257257
className="font-mono pr-10"
258258
disabled={
259259
isLoadingCredentials ||
260-
credentialSource === "noenv"
260+
credentialSource === "env"
261261
}
262262
type={showPassword ? "text" : "password"}
263263
autoComplete="current-password"
@@ -268,7 +268,9 @@ export default function SettingsPage() {
268268
<button
269269
type="button"
270270
onClick={() =>
271-
setShowPassword(!showPassword)
271+
if (credentialSource !== "env") {
272+
setShowPassword(!showPassword)
273+
}
272274
}
273275
className="absolute inset-y-0 right-0 pr-3 flex items-center text-muted-foreground hover:text-foreground transition-colors"
274276
>

0 commit comments

Comments
 (0)