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:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user