Skip to content

Commit

Permalink
feat: add Nethesis NP-V61 support (#332)
Browse files Browse the repository at this point in the history
- Added support for Nethesis NP-V61 model
- Related issue: NethServer/dev#7032
  • Loading branch information
andrea-marchionni authored Nov 7, 2024
1 parent 4c6e3a4 commit f7a6416
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,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;
Expand Down Expand Up @@ -240,7 +242,9 @@ 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 {
$scope.manualVendor = null;
Expand Down Expand Up @@ -694,6 +698,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 {
Expand Down

0 comments on commit f7a6416

Please sign in to comment.