提交 b1e05ca3 编写于 作者: J Jason Song 提交者: GitHub

Merge pull request #273 from lepdou/0613_17

step 2
...@@ -40,13 +40,11 @@ namespace_module.controller("LinkNamespaceController", ...@@ -40,13 +40,11 @@ namespace_module.controller("LinkNamespaceController",
toastr.warning("请选择集群"); toastr.warning("请选择集群");
return; return;
} }
var selectedClustersSize = selectedClusters.length;
if ($scope.namespaceType == 1){ if ($scope.namespaceType == 1){
$scope.namespaceName = $('#namespaces').select2('data')[0].id; $scope.namespaceName = $('#namespaces').select2('data')[0].id;
} }
var hasCreatedClusterCnt = 0;
var namespaceCreationModels = []; var namespaceCreationModels = [];
selectedClusters.forEach(function (cluster) { selectedClusters.forEach(function (cluster) {
namespaceCreationModels.push({ namespaceCreationModels.push({
...@@ -61,6 +59,7 @@ namespace_module.controller("LinkNamespaceController", ...@@ -61,6 +59,7 @@ namespace_module.controller("LinkNamespaceController",
NamespaceService.createNamespace($scope.appId, namespaceCreationModels) NamespaceService.createNamespace($scope.appId, namespaceCreationModels)
.then(function (result) { .then(function (result) {
toastr.success("创建成功"); toastr.success("创建成功");
$scope.step = 2;
}, function (result) { }, function (result) {
toastr.error(AppUtil.errorMsg(result)); toastr.error(AppUtil.errorMsg(result));
}); });
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册