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 <noreply@anthropic.com>
This commit is contained in:
parent
12728da193
commit
578d59f454
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user