fix(cloner): Map discovery_enabled field for Factory tab UI

Backend returns discovery_enabled but UI expected enabled property.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-02-25 08:03:34 +01:00
parent ea9a86d485
commit 164647b1e0

View File

@ -590,6 +590,8 @@ return view.extend({
renderFactoryTab: function() {
var self = this;
var disco = this.discoveryStatus || {};
// Map backend field name to UI expected name
disco.enabled = disco.discovery_enabled;
var pendingCount = this.pendingDevices.length;
var inventoryCount = this.hwInventory.length;
var profileCount = this.profiles.length;