Commit 5654fc41 by zhangle

bugfix: add item not refresh

parent 2fd37c26
...@@ -322,6 +322,9 @@ application_module.controller("ConfigNamespaceController", ...@@ -322,6 +322,9 @@ application_module.controller("ConfigNamespaceController",
$scope.item).then( $scope.item).then(
function (result) { function (result) {
toastr.success(cluster.env + " , " + $scope.item.key, "添加成功"); toastr.success(cluster.env + " , " + $scope.item.key, "添加成功");
if (cluster.env == $rootScope.pageContext.env && cluster.name == $rootScope.pageContext.clusterName){
$rootScope.refreshNamespaces(namespace_view_type.TABLE);
}
}, function (result) { }, function (result) {
toastr.error(AppUtil.errorMsg(result), "添加失败"); toastr.error(AppUtil.errorMsg(result), "添加失败");
}); });
...@@ -329,7 +332,6 @@ application_module.controller("ConfigNamespaceController", ...@@ -329,7 +332,6 @@ application_module.controller("ConfigNamespaceController",
$scope.addItemBtnDisabled = false; $scope.addItemBtnDisabled = false;
itemModal.modal('hide'); itemModal.modal('hide');
$rootScope.refreshNamespaces(namespace_view_type.TABLE);
} else { } else {
......
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