File tree Expand file tree Collapse file tree
frontend/viewer/src/project/browse Expand file tree Collapse file tree Original file line number Diff line number Diff line change 123123 <!-- Field Picker -->
124124 <FieldSelect bind:value ={selectedField } />
125125 <!-- Writing System Picker -->
126- <WsSelect bind:value ={selectedWs } wsType ={selectedField ?.ws ?? ' analysis-vernacular ' } />
126+ <WsSelect bind:value ={selectedWs } wsType ={selectedField ?.ws } />
127127 </div >
128128 <!-- Text Box: on mobile, wraps to new line -->
129129 <div class =" flex flex-row gap-2 flex-1" >
Original file line number Diff line number Diff line change 66
77 const wsService = useWritingSystemService ();
88
9- let {value = $bindable (), wsType}: { value: string [], wsType: WritingSystemSelection } = $props ();
10- let writingSystems = $derived (wsService .pickWritingSystems (wsType ));
9+ let {value = $bindable (), wsType}: { value: string [], wsType: WritingSystemSelection | undefined } = $props ();
10+ let writingSystems = $derived (wsType ? wsService .pickWritingSystems (wsType ) : [] );
1111 watch (() => writingSystems , () => {
1212 value = writingSystems .map (ws => ws .wsId );
1313 });
1414 </script >
15- <Select .Root type =" multiple" bind:value >
15+ <Select .Root disabled ={ ! wsType } type =" multiple" bind:value >
1616 <Select .Trigger class =" flex-1" >
1717 {#if value .length === 0 }
1818 <span class ="text-muted-foreground" >{$t ` Writing System ` }</span >
You can’t perform that action at this time.
0 commit comments