From 43d0818c3f2d657cfc01996bd34452a6e0bbd937 Mon Sep 17 00:00:00 2001 From: jgor20 <102353650+jgor20@users.noreply.github.com> Date: Wed, 28 Jan 2026 22:30:12 +0000 Subject: [PATCH 1/2] fix(settings): resolve 4 console errors in settings.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix escaped quotes in presetHint fallback using " instead of \" - Fix escaped quotes in load preset confirmation modal - Fix component name mismatch: modelManager() → models() - Add missing editing state/methods to models component --- public/js/components/models.js | 15 +++++++++++++++ public/views/settings.html | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/public/js/components/models.js b/public/js/components/models.js index 68f6b40..8a8fe27 100644 --- a/public/js/components/models.js +++ b/public/js/components/models.js @@ -6,6 +6,21 @@ window.Components = window.Components || {}; window.Components.models = () => ({ + editingModelId: null, + newMapping: '', + + isEditing(modelId) { + return this.editingModelId === modelId; + }, + + startEditing(modelId) { + this.editingModelId = modelId; + }, + + stopEditing() { + this.editingModelId = null; + }, + init() { // Ensure data is fetched when this tab becomes active (skip initial trigger) this.$watch('$store.global.activeTab', (val, oldVal) => { diff --git a/public/views/settings.html b/public/views/settings.html index 6a8463f..63e3e76 100644 --- a/public/views/settings.html +++ b/public/views/settings.html @@ -243,7 +243,7 @@ -

Select a preset to load it. Click "Apply to Claude CLI" to save changes.

+

Select a preset to load it. Click "Apply to Claude CLI" to save changes.

@@ -625,7 +625,7 @@

Your current configuration doesn't match any saved preset.

- +