Skip to content

Commit

Permalink
fix: turn off autoComplete for some inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Dec 25, 2024
1 parent e035062 commit d8dbdb2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Badge } from "@/components/ui/badge";
import { Checkbox } from "@/components/ui/checkbox";
import {
Dialog,
DialogContent,
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions apps/dokploy/components/dashboard/project/add-database.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ export const AddDatabase = ({ projectId, projectName }: Props) => {
<FormControl>
<Input
placeholder={`Default ${databasesUserDefaultPlaceholder[type]}`}
autoComplete="off"
{...field}
/>
</FormControl>
Expand All @@ -491,6 +492,7 @@ export const AddDatabase = ({ projectId, projectName }: Props) => {
<Input
type="password"
placeholder="******************"
autoComplete="off"
{...field}
/>
</FormControl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ export const AddRegistry = () => {
<FormItem>
<FormLabel>Username</FormLabel>
<FormControl>
<Input placeholder="Username" {...field} />
<Input
placeholder="Username"
autoComplete="off"
{...field}
/>
</FormControl>

<FormMessage />
Expand All @@ -177,6 +181,7 @@ export const AddRegistry = () => {
<FormControl>
<Input
placeholder="Password"
autoComplete="off"
{...field}
type="password"
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
Expand Down

0 comments on commit d8dbdb2

Please sign in to comment.