diff --git a/v2.5/data/sample_machine_uploadfile.txt b/v2.5/data/sample_machine_uploadfile.txt index 1c19f31..677f9bd 100644 --- a/v2.5/data/sample_machine_uploadfile.txt +++ b/v2.5/data/sample_machine_uploadfile.txt @@ -1,5 +1,5 @@ -00:01:02:03:04:11,8,127.0.0.1 -00:01:02:03:04:12,8,127.0.0.1 -00:01:02:03:04:13,8,127.0.0.1 -00:01:02:03:04:14,8,127.0.0.1 -00:01:02:03:04:15,8,127.0.0.1 +00:01:02:03:04:05,8,127.0.0.1 +00:01:02:03:04:06,8,127.0.0.1 +00:01:02:03:04:07,8,127.0.0.1 +00:01:02:03:04:08,8,127.0.0.1 +00:01:02:03:04:09,8,127.0.0.1 diff --git a/v2.5/src/app/controllers/wizardController.coffee b/v2.5/src/app/controllers/wizardController.coffee index 9518114..6d91087 100644 --- a/v2.5/src/app/controllers/wizardController.coffee +++ b/v2.5/src/app/controllers/wizardController.coffee @@ -545,8 +545,6 @@ define(['./baseController'], ()-> wizardService.displayDataInTable($scope, $scope.servers) - $scope.reload = -> - wizardService.displayDataInTable($scope, $scope.servers) ] .animation '.fade-animation', [-> return{ diff --git a/v2.5/src/app/services/wizardService.coffee b/v2.5/src/app/services/wizardService.coffee index 76c10a5..deddc21 100644 --- a/v2.5/src/app/services/wizardService.coffee +++ b/v2.5/src/app/services/wizardService.coffee @@ -621,6 +621,8 @@ define(['./baseService'], ()-> ) addInterface: ($scope, newInterface) -> isExist = false + if !$scope.interfaces + $scope.interfaces = {} if newInterface for key, value of $scope.interfaces if key == newInterface.name diff --git a/v2.5/target/src/app/controllers/wizardController.js b/v2.5/target/src/app/controllers/wizardController.js index 9c1f433..b3db457 100644 --- a/v2.5/target/src/app/controllers/wizardController.js +++ b/v2.5/target/src/app/controllers/wizardController.js @@ -631,10 +631,7 @@ $scope.commit = function(sendRequest) { return wizardService.reviewCommit($scope, sendRequest); }; - wizardService.displayDataInTable($scope, $scope.servers); - return $scope.reload = function() { - return wizardService.displayDataInTable($scope, $scope.servers); - }; + return wizardService.displayDataInTable($scope, $scope.servers); } ]).animation('.fade-animation', [ function() { diff --git a/v2.5/target/src/app/services/wizardService.js b/v2.5/target/src/app/services/wizardService.js index f8bd8da..dbf41f1 100644 --- a/v2.5/target/src/app/services/wizardService.js +++ b/v2.5/target/src/app/services/wizardService.js @@ -945,6 +945,9 @@ WizardService.prototype.addInterface = function($scope, newInterface) { var isExist, key, value, _ref; isExist = false; + if (!$scope.interfaces) { + $scope.interfaces = {}; + } if (newInterface) { _ref = $scope.interfaces; for (key in _ref) {