Merge "fix add interface bug"
This commit is contained in:
commit
4d7e9e23c9
@ -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
|
||||
|
@ -545,8 +545,6 @@ define(['./baseController'], ()->
|
||||
|
||||
wizardService.displayDataInTable($scope, $scope.servers)
|
||||
|
||||
$scope.reload = ->
|
||||
wizardService.displayDataInTable($scope, $scope.servers)
|
||||
]
|
||||
.animation '.fade-animation', [->
|
||||
return{
|
||||
|
@ -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
|
||||
|
@ -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() {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user