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:05,8,127.0.0.1
|
||||||
00:01:02:03:04:12,8,127.0.0.1
|
00:01:02:03:04:06,8,127.0.0.1
|
||||||
00:01:02:03:04:13,8,127.0.0.1
|
00:01:02:03:04:07,8,127.0.0.1
|
||||||
00:01:02:03:04:14,8,127.0.0.1
|
00:01:02:03:04:08,8,127.0.0.1
|
||||||
00:01:02:03:04:15,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)
|
wizardService.displayDataInTable($scope, $scope.servers)
|
||||||
|
|
||||||
$scope.reload = ->
|
|
||||||
wizardService.displayDataInTable($scope, $scope.servers)
|
|
||||||
]
|
]
|
||||||
.animation '.fade-animation', [->
|
.animation '.fade-animation', [->
|
||||||
return{
|
return{
|
||||||
|
@ -621,6 +621,8 @@ define(['./baseService'], ()->
|
|||||||
)
|
)
|
||||||
addInterface: ($scope, newInterface) ->
|
addInterface: ($scope, newInterface) ->
|
||||||
isExist = false
|
isExist = false
|
||||||
|
if !$scope.interfaces
|
||||||
|
$scope.interfaces = {}
|
||||||
if newInterface
|
if newInterface
|
||||||
for key, value of $scope.interfaces
|
for key, value of $scope.interfaces
|
||||||
if key == newInterface.name
|
if key == newInterface.name
|
||||||
|
@ -631,10 +631,7 @@
|
|||||||
$scope.commit = function(sendRequest) {
|
$scope.commit = function(sendRequest) {
|
||||||
return wizardService.reviewCommit($scope, sendRequest);
|
return wizardService.reviewCommit($scope, sendRequest);
|
||||||
};
|
};
|
||||||
wizardService.displayDataInTable($scope, $scope.servers);
|
return wizardService.displayDataInTable($scope, $scope.servers);
|
||||||
return $scope.reload = function() {
|
|
||||||
return wizardService.displayDataInTable($scope, $scope.servers);
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
]).animation('.fade-animation', [
|
]).animation('.fade-animation', [
|
||||||
function() {
|
function() {
|
||||||
|
@ -945,6 +945,9 @@
|
|||||||
WizardService.prototype.addInterface = function($scope, newInterface) {
|
WizardService.prototype.addInterface = function($scope, newInterface) {
|
||||||
var isExist, key, value, _ref;
|
var isExist, key, value, _ref;
|
||||||
isExist = false;
|
isExist = false;
|
||||||
|
if (!$scope.interfaces) {
|
||||||
|
$scope.interfaces = {};
|
||||||
|
}
|
||||||
if (newInterface) {
|
if (newInterface) {
|
||||||
_ref = $scope.interfaces;
|
_ref = $scope.interfaces;
|
||||||
for (key in _ref) {
|
for (key in _ref) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user