Skip to content

Commit 1581780

Browse files
committed
Some code comments corrected
1 parent 510fd4d commit 1581780

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/SettingsDialog.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,19 @@ const loadModels = async () => {
268268
}
269269
};
270270
271-
// Функция для установки значения модели
271+
// Function to set the model value
272272
function setModel(val) {
273-
settings.model.value = val
273+
settings.model.value = val;
274274
}
275275
276-
const modelOptions = ref(settings.models.value)
276+
const modelOptions = ref(settings.models.value);
277277
278-
// Функция для фильтрации вариантов
278+
// Function to filter the model options
279279
function filterFn(val, update, abort) {
280280
update(() => {
281-
const needle = val.toLowerCase() // Важно: используем toLowerCase, а не toLocaleLowerCase, если не требуется учитывать локаль
282-
modelOptions.value = settings.models.value.filter(v => v.toLowerCase().includes(needle))
283-
})
281+
const needle = val.toLowerCase(); // Important: using toLowerCase, instead of toLocaleLowerCase, unless you need to account for locale.
282+
modelOptions.value = settings.models.value.filter(v => v.toLowerCase().includes(needle));
283+
});
284284
}
285285
</script>
286286

0 commit comments

Comments
 (0)