From 8717724993b9bb831d3294208df3203e00209f61 Mon Sep 17 00:00:00 2001 From: Andrea Marchionni Date: Thu, 7 Nov 2024 16:38:21 +0100 Subject: [PATCH] feat: add new phone model NP-V61 to wizard UI auto discovery (#195) - Added support for NP-V61 model in the wizard UI - Related issue: https://github.com/NethServer/dev/issues/7032 --- wizard/app/scripts/controllers/devices/inventory.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wizard/app/scripts/controllers/devices/inventory.js b/wizard/app/scripts/controllers/devices/inventory.js index 7305676e..be2d4f00 100644 --- a/wizard/app/scripts/controllers/devices/inventory.js +++ b/wizard/app/scripts/controllers/devices/inventory.js @@ -32,9 +32,11 @@ angular.module('nethvoiceWizardUiApp') const npx3Digits = "00" const npx5Digits = "01" const npx210Digits = "02" + const npv61Digits = "03" const npx3Name = "nethesis-NPX3" const npx5Name = "nethesis-NPX5" const npx210Name = "nethesis-NPX210" + const npv61Name = "nethesis-NPV61" function gotModels(models) { $scope.models = models; @@ -242,6 +244,8 @@ angular.module('nethvoiceWizardUiApp') $scope.manualModel = $scope.manualFilteredModels.find(( model ) => { return model.name === npx5Name }) } else if (mac.toUpperCase().split("-")[modelDigitsKey] === npx210Digits) { $scope.manualModel = $scope.manualFilteredModels.find(( model ) => { return model.name === npx210Name }) + } else if (mac.toUpperCase().split("-")[modelDigitsKey] === npv61Digits) { + $scope.manualModel = $scope.manualFilteredModels.find(( model ) => { return model.name === npv61Name }) } } } else { @@ -732,6 +736,8 @@ angular.module('nethvoiceWizardUiApp') phone.model = phone.filteredModels.find(( model ) => { return model.name === npx5Name }) } else if (mac.toUpperCase().split("-")[modelDigitsKey] === npx210Digits) { phone.model = phone.filteredModels.find(( model ) => { return model.name === npx210Name }) + } else if (mac.toUpperCase().split("-")[modelDigitsKey] === npv61Digits) { + phone.model = phone.filteredModels.find(( model ) => { return model.name === npv61Name }) } } } else {