Commit 5035f645 authored by Your Name's avatar Your Name

Fix: Correct status element ID prefix mapping for upload status elements

Fixed mismatch between config object names and status element IDs:
- kiro_config → kiro
- kilo_config → kilo
- claude_config → claude
- qwen_config → qwen
- codex_config → codex
parent a1e369d0
......@@ -148,7 +148,17 @@ async function uploadFileChunked(providerKey, fileType, file, configObject) {
toggleProvider(providerKey);
}
const statusEl = document.getElementById(`${configObject}-upload-status-${providerKey}`);
// Map config object names to status element prefixes
const statusPrefixMap = {
'kiro_config': 'kiro',
'kilo_config': 'kilo',
'claude_config': 'claude',
'qwen_config': 'qwen',
'codex_config': 'codex'
};
const statusPrefix = statusPrefixMap[configObject] || configObject.replace('_config', '');
const statusEl = document.getElementById(`${statusPrefix}-upload-status-${providerKey}`);
statusEl.innerHTML = `<div style="color: #4a9eff;">Uploading file: 0%</div>`;
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment