File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments