提交 5654fc41 编写于 作者: Z zhangle

bugfix: add item not refresh

上级 2fd37c26
......@@ -322,6 +322,9 @@ application_module.controller("ConfigNamespaceController",
$scope.item).then(
function (result) {
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) {
toastr.error(AppUtil.errorMsg(result), "添加失败");
});
......@@ -329,7 +332,6 @@ application_module.controller("ConfigNamespaceController",
$scope.addItemBtnDisabled = false;
itemModal.modal('hide');
$rootScope.refreshNamespaces(namespace_view_type.TABLE);
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册