mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-07-26 11:38:13 +00:00
Update customer selection in authentication flow.
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 9111ef36-26c8-4085-84ca-a35dc1fec1b5 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7083d608-d6d3-4a6a-9a27-6286c5109627/f4dee1c0-bc81-4a63-9e10-476f21e0c737.jpg
This commit is contained in:
@@ -85,7 +85,7 @@ export default function AuthPage() {
|
||||
email: "",
|
||||
password: "",
|
||||
fullName: "",
|
||||
organizationId: undefined,
|
||||
customerId: undefined,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -397,23 +397,23 @@ export default function AuthPage() {
|
||||
/>
|
||||
<FormField
|
||||
control={registerForm.control}
|
||||
name="organizationId"
|
||||
name="customerId"
|
||||
render={({ field }) => (
|
||||
<FormItem>
|
||||
<FormLabel>Organization</FormLabel>
|
||||
<FormLabel>Customer</FormLabel>
|
||||
<FormControl>
|
||||
<Select
|
||||
disabled={orgsLoading}
|
||||
disabled={customersLoading}
|
||||
onValueChange={(value) => field.onChange(value)}
|
||||
value={field.value || ""}
|
||||
>
|
||||
<SelectTrigger>
|
||||
<SelectValue placeholder="Select an organization (optional)" />
|
||||
<SelectValue placeholder="Select a customer (optional)" />
|
||||
</SelectTrigger>
|
||||
<SelectContent>
|
||||
{organizations.map((org) => (
|
||||
<SelectItem key={org.id} value={org.id.toString()}>
|
||||
{org.name}
|
||||
{customers.map((customer) => (
|
||||
<SelectItem key={customer.id} value={customer.id.toString()}>
|
||||
{customer.name}
|
||||
</SelectItem>
|
||||
))}
|
||||
</SelectContent>
|
||||
|
||||
Reference in New Issue
Block a user