fix(settings): resolve 4 console errors in settings.html

- 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
This commit is contained in:
jgor20
2026-01-28 22:30:12 +00:00
parent b64809277c
commit 43d0818c3f
2 changed files with 18 additions and 3 deletions

View File

@@ -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) => {