mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-16 17:05:17 +00:00
fix: options in enable namespace selection
This commit is contained in:
+3
-4
@@ -1,7 +1,6 @@
|
|||||||
import { SelectGroup } from "@radix-ui/react-select";
|
import { SelectGroup } from "@radix-ui/react-select";
|
||||||
import { ToggleVisibilityInput } from "@/components/shared/toggle-visibility-input";
|
import { ToggleVisibilityInput } from "@/components/shared/toggle-visibility-input";
|
||||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||||
import { Checkbox } from "@/components/ui/checkbox";
|
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Label } from "@/components/ui/label";
|
import { Label } from "@/components/ui/label";
|
||||||
import {
|
import {
|
||||||
@@ -81,15 +80,15 @@ export const ShowInternalLibsqlCredentials = ({ libsqlId }: Props) => {
|
|||||||
defaultValue={
|
defaultValue={
|
||||||
data?.enableNamespaces
|
data?.enableNamespaces
|
||||||
? String(data?.enableNamespaces)
|
? String(data?.enableNamespaces)
|
||||||
: "False"
|
: "false"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder={"False"} />
|
<SelectValue placeholder={"false"} />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
{["False", "True"].map((node) => (
|
{["false", "true"].map((node) => (
|
||||||
<SelectItem key={node} value={node}>
|
<SelectItem key={node} value={node}>
|
||||||
{node.charAt(0).toUpperCase() + node.slice(1)}
|
{node.charAt(0).toUpperCase() + node.slice(1)}
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ import {
|
|||||||
RedisIcon,
|
RedisIcon,
|
||||||
} from "@/components/icons/data-tools-icons";
|
} from "@/components/icons/data-tools-icons";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { Checkbox } from "@/components/ui/checkbox";
|
|
||||||
import {
|
import {
|
||||||
Dialog,
|
Dialog,
|
||||||
DialogContent,
|
DialogContent,
|
||||||
@@ -643,15 +642,15 @@ export const AddDatabase = ({ environmentId, projectName }: Props) => {
|
|||||||
field.onChange(Boolean(value))
|
field.onChange(Boolean(value))
|
||||||
}
|
}
|
||||||
defaultValue={
|
defaultValue={
|
||||||
field.value ? String(field.value) : "False"
|
field.value ? String(field.value) : "false"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder={"False"} />
|
<SelectValue placeholder={"false"} />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectGroup>
|
<SelectGroup>
|
||||||
{["False", "True"].map((node) => (
|
{["false", "true"].map((node) => (
|
||||||
<SelectItem key={node} value={node}>
|
<SelectItem key={node} value={node}>
|
||||||
{node.charAt(0).toUpperCase() +
|
{node.charAt(0).toUpperCase() +
|
||||||
node.slice(1)}
|
node.slice(1)}
|
||||||
|
|||||||
Reference in New Issue
Block a user