mirror of
https://github.com/freedbygrace/DynamoDNS.git
synced 2026-08-19 06:06:17 +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: "",
|
email: "",
|
||||||
password: "",
|
password: "",
|
||||||
fullName: "",
|
fullName: "",
|
||||||
organizationId: undefined,
|
customerId: undefined,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -397,23 +397,23 @@ export default function AuthPage() {
|
|||||||
/>
|
/>
|
||||||
<FormField
|
<FormField
|
||||||
control={registerForm.control}
|
control={registerForm.control}
|
||||||
name="organizationId"
|
name="customerId"
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<FormItem>
|
<FormItem>
|
||||||
<FormLabel>Organization</FormLabel>
|
<FormLabel>Customer</FormLabel>
|
||||||
<FormControl>
|
<FormControl>
|
||||||
<Select
|
<Select
|
||||||
disabled={orgsLoading}
|
disabled={customersLoading}
|
||||||
onValueChange={(value) => field.onChange(value)}
|
onValueChange={(value) => field.onChange(value)}
|
||||||
value={field.value || ""}
|
value={field.value || ""}
|
||||||
>
|
>
|
||||||
<SelectTrigger>
|
<SelectTrigger>
|
||||||
<SelectValue placeholder="Select an organization (optional)" />
|
<SelectValue placeholder="Select a customer (optional)" />
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
{organizations.map((org) => (
|
{customers.map((customer) => (
|
||||||
<SelectItem key={org.id} value={org.id.toString()}>
|
<SelectItem key={customer.id} value={customer.id.toString()}>
|
||||||
{org.name}
|
{customer.name}
|
||||||
</SelectItem>
|
</SelectItem>
|
||||||
))}
|
))}
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
|
|||||||
Reference in New Issue
Block a user