|
17 | 17 | $scope.countTotalByMetrics = countTotalByMetrics; |
18 | 18 |
|
19 | 19 | $scope.HelpersService = HelpersService; |
20 | | - $scope.validCostMetrics = ['igp', 'hops']; |
| 20 | + $scope.validCostMetrics = ['igp', 'hops', 'te']; |
21 | 21 | $scope.autoPathFormLoadingStatus = false; |
22 | 22 | $scope.computedPaths = []; |
23 | 23 | $scope.computedMetrics = []; |
|
79 | 79 |
|
80 | 80 | metricType = $scope.manualPathMetrics[lastIndex - 1].type; |
81 | 81 |
|
82 | | - console.log(metricType, $scope.manualPathMetricsTotal[metricName], |
83 | | - $scope.manualPathMetrics[lastIndex - 1], |
84 | | - $scope.manualPathMetrics[lastIndex - 1].metric[metricName][metricType]); |
85 | | - |
86 | 82 | $scope.manualPathMetricsTotal[metricName] = |
87 | 83 | $scope.manualPathMetricsTotal[metricName] - $scope.manualPathMetrics[lastIndex - 1].metric[metricName][metricType]; |
88 | 84 |
|
|
91 | 87 |
|
92 | 88 | $scope.manualPath.splice(lastIndex, 1); |
93 | 89 | $scope.manualPathMetrics.splice(lastIndex - 1); |
94 | | - |
95 | | - console.log("last", $scope.manualPathMetricsTotal, $scope.manualPathMetrics); |
96 | | - |
97 | 90 | } |
98 | 91 |
|
99 | 92 | // intermediate |
|
111 | 104 |
|
112 | 105 | for ( metricName in metric.metric) { |
113 | 106 | if( metric.metric.hasOwnProperty( metricName ) ) { |
114 | | - console.log("metricName", metricName); |
115 | | - console.log("metricType", metricType); |
| 107 | + |
116 | 108 | metricType = metric.type; |
117 | 109 |
|
118 | 110 | $scope.manualPathMetricsTotal[metricName] = |
|
121 | 113 | } |
122 | 114 | } |
123 | 115 |
|
124 | | - console.log(metric); |
125 | 116 | }); |
126 | 117 |
|
127 | 118 | } |
|
259 | 250 |
|
260 | 251 | // when a user is updating the path |
261 | 252 | if(SharedDataService.data.pathSetupUpdateData.mode == "update"){ |
262 | | - console.log(SharedDataService.data.pathSetupUpdateData); |
263 | 253 |
|
264 | 254 | $scope.psForm = { |
265 | 255 | "source": SharedDataService.data.pathSetupUpdateData.pathDetails.source, |
|
0 commit comments