refac
This commit is contained in:
1 parent
cbb3aade2b
commit
9c7ce154e7
1 file changed
+4
@@ -18,6 +18,9 @@
|
|||||||
export let align: 'start' | 'end' = 'start';
|
export let align: 'start' | 'end' = 'start';
|
||||||
|
|
||||||
let compareModels = selectedModels.length > 1;
|
let compareModels = selectedModels.length > 1;
|
||||||
|
let selector;
|
||||||
|
|
||||||
|
export const open = () => selector?.open();
|
||||||
|
|
||||||
const saveDefaultModel = async () => {
|
const saveDefaultModel = async () => {
|
||||||
const hasEmptyModel = selectedModels.filter((it) => it === '');
|
const hasEmptyModel = selectedModels.filter((it) => it === '');
|
||||||
@@ -64,6 +67,7 @@
|
|||||||
<div class="min-w-0 max-w-full overflow-hidden">
|
<div class="min-w-0 max-w-full overflow-hidden">
|
||||||
<div class="min-w-0 max-w-full">
|
<div class="min-w-0 max-w-full">
|
||||||
<Selector
|
<Selector
|
||||||
|
bind:this={selector}
|
||||||
id="model"
|
id="model"
|
||||||
placeholder={$i18n.t('Select a model')}
|
placeholder={$i18n.t('Select a model')}
|
||||||
items={$models.map((model) => ({
|
items={$models.map((model) => ({
|
||||||
|
|||||||
Reference in new issue
Block a user