Merge pull request #985 from Barsnes/chore/autocomplete-off

fix: turn off `autoComplete` for some inputs
This commit is contained in:
Mauricio Siu
2024-12-25 00:48:36 -06:00
committed by GitHub
4 changed files with 19 additions and 12 deletions

View File

@@ -1,4 +1,5 @@
import { Badge } from "@/components/ui/badge";
import { Checkbox } from "@/components/ui/checkbox";
import {
Dialog,
DialogContent,
@@ -10,7 +11,6 @@ import { Loader2 } from "lucide-react";
import { useEffect, useRef, useState } from "react";
import { TerminalLine } from "../../docker/logs/terminal-line";
import { type LogLine, parseLogs } from "../../docker/logs/utils";
import { Checkbox } from "@/components/ui/checkbox";
interface Props {
logPath: string | null;

View File

@@ -471,6 +471,7 @@ export const AddDatabase = ({ projectId, projectName }: Props) => {
<FormControl>
<Input
placeholder={`Default ${databasesUserDefaultPlaceholder[type]}`}
autoComplete="off"
{...field}
/>
</FormControl>
@@ -491,6 +492,7 @@ export const AddDatabase = ({ projectId, projectName }: Props) => {
<Input
type="password"
placeholder="******************"
autoComplete="off"
{...field}
/>
</FormControl>

View File

@@ -159,7 +159,11 @@ export const AddRegistry = () => {
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="Username" {...field} />
<Input
placeholder="Username"
autoComplete="off"
{...field}
/>
</FormControl>
<FormMessage />
@@ -177,6 +181,7 @@ export const AddRegistry = () => {
<FormControl>
<Input
placeholder="Password"
autoComplete="off"
{...field}
type="password"
/>

View File

@@ -9,14 +9,6 @@ import {
DialogHeader,
DialogTitle,
} from "@/components/ui/dialog";
import { Input } from "@/components/ui/input";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import {
Form,
FormControl,
@@ -25,15 +17,23 @@ import {
FormLabel,
FormMessage,
} from "@/components/ui/form";
import { Input } from "@/components/ui/input";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select";
import { api } from "@/utils/api";
import { zodResolver } from "@hookform/resolvers/zod";
import { ArrowRightLeft, Plus, Trash2 } from "lucide-react";
import { useTranslation } from "next-i18next";
import type React from "react";
import { useEffect, useState } from "react";
import { useFieldArray, useForm } from "react-hook-form";
import { toast } from "sonner";
import { z } from "zod";
import { useFieldArray, useForm } from "react-hook-form";
import { zodResolver } from "@hookform/resolvers/zod";
interface Props {
children: React.ReactNode;