source/lib/VBListPanel.js
// Use the Serial Number table, keyed on serial number

Use the Serial Number table, keyed on serial number
Use the Serial Number table keyed on serial number
displaySelectedDevice(ip) {
    const device = this.getDeviceDetailsForIP(ip)
    if (device) {
      this.friendlyName.value  = device.friendlyName
      this.serialNumber.value  = device.serialNumber
      this.modelNumber.value   = device.modelNumber
      this.modelName.value     = device.modelName
    }
    else {
      this.friendlyName.value  = ' '
      this.serialNumber.value  = ' '
      this.modelNumber.value   = ' '
      this.modelName.value     = ' '
    }
    const trList = this.discoveredDevices.getElementsByTagName('tr')
    for (let i = 0; i < trList.length; i++) {
      const tr = trList[i]
      if (tr) {
        if (device && 'sn-' + device.serialNumber === tr.id) {
          tr.classList.add('selectedDevice')
        }
        else {
          tr.classList.remove('selectedDevice')
        }
      }
    }
    return device
  }
displaySelectedDevice ( ip ) { const device = this . getDeviceDetailsForIP ( ip ) if ( device ) { this . friendlyName . value = device . friendlyName this . serialNumber . value = device . serialNumber this . modelNumber . value = device . modelNumber this . modelName . value = device . modelName } else { this . friendlyName . value = ' ' this . serialNumber . value = ' ' this . modelNumber . value = ' ' this . modelName . value = ' ' } const trList = this . discoveredDevices . getElementsByTagName ( 'tr' ) for ( let i = 0 ; i < trList . length ; i ++ ) { const tr = trList [ i ] if ( tr ) { if ( device && 'sn-' + device . serialNumber === tr . id ) { tr . classList . add ( 'selectedDevice' ) } else { tr . classList . remove ( 'selectedDevice' ) } } } return device }
Use the Serial Number table, keyed on serial number
Use the Serial Number table keyed on serial number
// Update Selected Device details fields
 // If we found the device in the discovered device list,
 // mark it as selected, marking all other devices as not selected
