@@ -62,6 +62,7 @@ var app = angular.module('app').controller('VnfdCtrl', function ($scope, $compil
62
62
$scope . vnfdCreate . vdu . splice ( $scope . vduEditIndex , 1 ) ;
63
63
delete $scope . vduEditIndex ;
64
64
}
65
+ $scope . vduCreate . vimInstanceName = [ ] ;
65
66
$scope . vnfdCreate . vdu . push ( angular . copy ( $scope . vduCreate ) ) ;
66
67
} ;
67
68
$scope . storeDepFlavour = function ( ) {
@@ -73,18 +74,19 @@ var app = angular.module('app').controller('VnfdCtrl', function ($scope, $compil
73
74
$scope . vnfdCreate . deployment_flavour . push ( angular . copy ( $scope . depFlavor ) ) ;
74
75
} ;
75
76
76
- $scope . selection = [ ] ;
77
+ $scope . selectionImage = [ ] ;
77
78
78
79
$scope . toggleSelection = function toggleSelection ( image ) {
79
- var idx = $scope . selection . indexOf ( image ) ;
80
+ console . log ( ( { } ) . toString . call ( $scope . selection ) . match ( / \s ( [ a - z A - Z ] + ) / ) [ 1 ] . toLowerCase ( ) )
81
+ var idx = $scope . selectionImage . indexOf ( image ) ;
80
82
if ( idx > - 1 ) {
81
- $scope . selection . splice ( idx , 1 ) ;
83
+ $scope . selectionImage . splice ( idx , 1 ) ;
82
84
}
83
85
else {
84
- $scope . selection . push ( image ) ;
86
+ $scope . selectionImage . push ( image ) ;
85
87
}
86
- console . log ( $scope . selection ) ;
87
- $scope . vduCreate . vm_image = $scope . selection ;
88
+ console . log ( $scope . selectionImage ) ;
89
+ $scope . vduCreate . vm_image = $scope . selectionImage ;
88
90
} ;
89
91
90
92
$scope . sendVNFD = function ( ) {
0 commit comments