Commit b1e05ca3 by Jason Song Committed by GitHub

Merge pull request #273 from lepdou/0613_17

step 2
parents 64483c44 fbc22cb0
......@@ -40,13 +40,11 @@ namespace_module.controller("LinkNamespaceController",
toastr.warning("请选择集群");
return;
}
var selectedClustersSize = selectedClusters.length;
if ($scope.namespaceType == 1){
$scope.namespaceName = $('#namespaces').select2('data')[0].id;
}
var hasCreatedClusterCnt = 0;
var namespaceCreationModels = [];
selectedClusters.forEach(function (cluster) {
namespaceCreationModels.push({
......@@ -61,6 +59,7 @@ namespace_module.controller("LinkNamespaceController",
NamespaceService.createNamespace($scope.appId, namespaceCreationModels)
.then(function (result) {
toastr.success("创建成功");
$scope.step = 2;
}, function (result) {
toastr.error(AppUtil.errorMsg(result));
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment