Fix malformed console.log causing syntax error
Removed the improperly escaped console.log statement that was inside a template literal. The console.log was not properly escaped with template literal backticks causing: "missing ) after argument list" error at line 307:26. The debug logging is no longer needed. After fixing the syntax error, users should: 1. Do a hard refresh (Ctrl+Shift+R) to clear JavaScript module cache 2. Add a NEW RSI indicator 3. Expand settings - should now see RSI Length, Overbought Level, Oversold Level
This commit is contained in:
@ -260,8 +260,6 @@ function renderPresetIndicatorIndicator(meta, indicator) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function renderIndicatorConfig(indicator, meta) {
|
function renderIndicatorConfig(indicator, meta) {
|
||||||
console.log('[renderIndicatorConfig] Rendering config for:', indicator.name, 'Inputs:', meta?.inputs?.length);
|
|
||||||
|
|
||||||
const plotGroups = groupPlotsByColor(meta?.plots || []);
|
const plotGroups = groupPlotsByColor(meta?.plots || []);
|
||||||
|
|
||||||
return `
|
return `
|
||||||
@ -299,6 +297,31 @@ return `
|
|||||||
` : ''}
|
` : ''}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
${meta?.inputs && meta.inputs.length > 0 ? `
|
||||||
|
<div class="config-section">
|
||||||
|
<div class="section-subtitle">Parameters</div>
|
||||||
|
${meta.inputs.map(input => `
|
||||||
|
<div class="config-row">
|
||||||
|
<label>${input.label}</label>
|
||||||
|
${input.type === 'select' ?
|
||||||
|
`<select onchange="window.updateIndicatorSetting && window.updateIndicatorSetting('${indicator.id}', '${input.name}', this.value)">
|
||||||
|
${input.options.map(o => `<option value="${o}" ${indicator.params[input.name] === o ? 'selected' : ''}>${o}</option>`).join('')}
|
||||||
|
</select>` :
|
||||||
|
`<input
|
||||||
|
type="number"
|
||||||
|
value="${indicator.params[input.name]}"
|
||||||
|
${input.min !== undefined ? `min="${input.min}"` : ''}
|
||||||
|
${input.max !== undefined ? `max="${input.max}"` : ''}
|
||||||
|
${input.step !== undefined ? `step="${input.step}"` : ''}
|
||||||
|
onchange="window.updateIndicatorSetting && window.updateIndicatorSetting('${indicator.id}', '${input.name}', parseFloat(this.value))"
|
||||||
|
>`
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
`).join('')}
|
||||||
|
</div>
|
||||||
|
` : ''}
|
||||||
|
</div>
|
||||||
|
|
||||||
${meta?.inputs && meta.inputs.length > 0 ? `
|
${meta?.inputs && meta.inputs.length > 0 ? `
|
||||||
<div class="config-section">
|
<div class="config-section">
|
||||||
<div class="section-subtitle">Parameters</div>
|
<div class="section-subtitle">Parameters</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user