dispath close
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundModelPickerModal.svelte
CHANGED
@@ -116,7 +116,10 @@
|
|
116 |
{@const [nameSpace, modelName] = model.id.split('/')}
|
117 |
<button
|
118 |
class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100"
|
119 |
-
on:click={() =>
|
|
|
|
|
|
|
120 |
>
|
121 |
<span class="inline-flex items-center"
|
122 |
><span class="text-gray-500">{nameSpace}</span><span class="mx-1 text-black"
|
|
|
116 |
{@const [nameSpace, modelName] = model.id.split('/')}
|
117 |
<button
|
118 |
class="flex cursor-pointer items-center px-2 py-1.5 text-sm hover:bg-gray-100"
|
119 |
+
on:click={() => {
|
120 |
+
dispatch('modelSelected', model.id);
|
121 |
+
dispatch('close');
|
122 |
+
}}
|
123 |
>
|
124 |
<span class="inline-flex items-center"
|
125 |
><span class="text-gray-500">{nameSpace}</span><span class="mx-1 text-black"
|