From 578d59f454827e5ad26a774d3e1287e3575bdac7 Mon Sep 17 00:00:00 2001 From: CyberMind-FR Date: Tue, 13 Jan 2026 09:40:31 +0100 Subject: [PATCH] fix(crowdsec-wizard): Don't abort XHR during acquisition config The refreshView() call was aborting the pending configureAcquisition XHR request by triggering new API calls. Now only updates the button state without a full view refresh. Co-Authored-By: Claude Opus 4.5 --- .../resources/view/crowdsec-dashboard/wizard.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js b/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js index bbe95c2a..f0c081f2 100644 --- a/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js +++ b/package/secubox/luci-app-crowdsec-dashboard/htdocs/luci-static/resources/view/crowdsec-dashboard/wizard.js @@ -1099,7 +1099,13 @@ return view.extend({ handleConfigureAcquisition: function() { console.log('[Wizard] handleConfigureAcquisition called'); this.wizardData.acquisitionConfiguring = true; - this.refreshView(); + + // Update button state without full refresh (which would abort the XHR) + var btn = document.querySelector('.cbi-button-action'); + if (btn) { + btn.disabled = true; + btn.textContent = _('Configuring...'); + } // Get values from wizard data var syslogEnabled = this.wizardData.syslogEnabled ? '1' : '0';