File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change 866866 datatype =" number"
867867 fitViewport
868868 >
869- {#each orderedModels as model (model .id )}
870- <Select .Item size ="xs" value ={model .id } label ={getDisplayNameForModel (model )} class =" flex gap-1" >
871- {model .name }
872- <div class ="whitespace-nowrap text-muted-foreground" >(Version: {model .version })</div >
873- </Select .Item >
874- {/each }
869+ {#if orderedModels .length === 0 }
870+ <div class =" select-none px-1 py-1 text-xs text-muted-foreground" >No models available</div >
871+ {:else }
872+ {#each orderedModels as model (model .id )}
873+ <Select .Item
874+ size =" xs"
875+ value ={model .id }
876+ label ={getDisplayNameForModel (model )}
877+ class =" flex gap-1"
878+ >
879+ {model .name }
880+ <div class ="whitespace-nowrap text-muted-foreground" >(Version: {model .version })</div >
881+ </Select .Item >
882+ {/each }
883+ {/if }
875884 </Select .Content >
876885 <Select .Input type =" number" name =" model" aria-label =" Select Model hidden input" />
877886 </Select .Root >
You can’t perform that action at this time.
0 commit comments