From 174ecb946b375abb821b044142b3a75c55733970 Mon Sep 17 00:00:00 2001 From: tonyco97 Date: Tue, 27 Feb 2024 14:52:05 +0100 Subject: [PATCH] wizard_ui. Added proxy for physical trunks modal --- .../app/scripts/controllers/trunks/physical.js | 9 +++++++++ wizard/app/scripts/i18n/locale-it.json | 1 + wizard/app/views/trunks/physical.html | 16 +++++++++++++++- 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/wizard/app/scripts/controllers/trunks/physical.js b/wizard/app/scripts/controllers/trunks/physical.js index 8409f5a9..8e1e958b 100644 --- a/wizard/app/scripts/controllers/trunks/physical.js +++ b/wizard/app/scripts/controllers/trunks/physical.js @@ -19,6 +19,8 @@ angular.module('nethvoiceWizardUiApp') $scope.onSave = false; $scope.users = []; $scope.physicalLimit = {}; + $scope.exampleInputProxy = '' + $scope.exampleIpv4_green = '' $scope.stringToCheckGrandstream = "grandstream"; var limitLength = 20; @@ -85,6 +87,11 @@ angular.module('nethvoiceWizardUiApp') DeviceService.gatewayModelList().then(function (res) { $scope.allModels = res.data; $scope.allVendors = Object.keys($scope.allModels); + var firstModel = Object.values($scope.allModels)[0][0]; + $scope.exampleInputProxy = firstModel.proxy; + $scope.exampleIpv4_green = firstModel.ipv4_green; + $scope.newGateway.proxy = $scope.exampleInputProxy; + $scope.newGateway.ipv4_green = $scope.exampleIpv4_green; }, function (err) { console.log(err); }); @@ -171,6 +178,8 @@ angular.module('nethvoiceWizardUiApp') $scope.hideGatewayDialog = function () { $scope.newGateway = {}; + $scope.newGateway.proxy = $scope.exampleInputProxy; + $scope.newGateway.ipv4_green = $scope.exampleIpv4_green; $('#newGwDialog').modal('hide'); }; diff --git a/wizard/app/scripts/i18n/locale-it.json b/wizard/app/scripts/i18n/locale-it.json index 226f014f..7974c4ba 100644 --- a/wizard/app/scripts/i18n/locale-it.json +++ b/wizard/app/scripts/i18n/locale-it.json @@ -62,6 +62,7 @@ "Extension linked correctly to user": "Interno associato correttamente all'utente", "Physical lines configuration": "Configurazione Fasci Fisici", "PBX IP": "IP PBX", + "Proxy address": "Indirizzo proxy", "Network mask": "Maschera di rete", "Delete": "Elimina", "Model": "Modello", diff --git a/wizard/app/views/trunks/physical.html b/wizard/app/views/trunks/physical.html index d3f68dbe..663f28b5 100644 --- a/wizard/app/views/trunks/physical.html +++ b/wizard/app/views/trunks/physical.html @@ -152,6 +152,13 @@

+
+ +
+ +
+
+
@@ -272,7 +279,14 @@
- + +
+
+ +
+ +
+