File tree Expand file tree Collapse file tree
src/routes/(authenticated)/project/[project_code] Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 }
3030
3131 const { projectId, userLocale }: Props = $props ();
32+
3233 const schema = z .object ({
3334 usernamesText: z .string ().trim ().min (1 , $t (' project_page.bulk_add_members.empty_user_field' )),
3435 password: passwordFormRules ($t ),
35- locale: z .string ().trim ().min (2 ). default ( userLocale ) ,
36+ locale: z .string ().trim ().min (2 ),
3637 });
3738
3839 let formModal: FormModal <typeof schema > | undefined = $state ();
5960 async function openModal(): Promise <void > {
6061 if (! formModal ) return ;
6162 currentStep = BulkAddSteps .Add ;
62- const { response } = await formModal .open (undefined , async (state ) => {
63+ const { response } = await formModal .open ({ locale: userLocale } , async (state ) => {
6364 const passwordHash = await hash (state .password .currentValue );
6465 const usernames = state .usernamesText .currentValue
6566 .split (' \n ' )
Original file line number Diff line number Diff line change 77 import {DropdownMenuContent } from ' ../ui/dropdown-menu' ;
88 import * as Drawer from ' ../ui/drawer' ;
99 import type {Snippet } from ' svelte' ;
10- import type {ContextMenuContentProps , DropdownMenuContentProps } from ' bits-ui' ;
10+ import type {ContextMenuContentProps } from ' bits-ui' ;
1111 import type {DrawerContentProps } from ' vaul-svelte' ;
1212
1313 type Props = {
1414 children? : Snippet ;
1515 } & ContextMenuContentProps &
16- DropdownMenuContentProps &
1716 DrawerContentProps ;
1817
1918 let {children, ref = $bindable (null ), ... rest}: Props = $props ();
You can’t perform that action at this time.
0 commit comments