未验证 提交 a089714c 编写于 作者: J Jason Song 提交者: GitHub

Merge pull request #1734 from nobodyiam/missing-env-alert

add missing env and namespace alert
......@@ -105,6 +105,10 @@ function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr
AppService.find_miss_envs($rootScope.pageContext.appId).then(function (result) {
$scope.missEnvs = AppUtil.collectData(result);
if ($scope.missEnvs.length > 0) {
toastr.warning("当前项目有环境缺失,请点击页面左侧『补缺环境』补齐数据");
}
$scope.findMissingNamespaces();
});
}
......@@ -120,6 +124,9 @@ function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr
AppService.find_missing_namespaces($rootScope.pageContext.appId, $rootScope.pageContext.env,
$rootScope.pageContext.clusterName).then(function (result) {
$scope.missingNamespaces = AppUtil.collectData(result);
if ($scope.missingNamespaces.length > 0) {
toastr.warning("当前环境有Namespace缺失,请点击页面左侧『补缺Namespace』补齐数据");
}
});
}
};
......
......@@ -12,7 +12,7 @@
删除Namespace将导致实例获取不到此Namespace的配置,确定要删除吗?
</div>
<div class="modal-body form-horizontal" ng-show="!toDeleteNamespace.isPublic">
删除私有Namespace将导致实例获取不到此Namespace的配置,而且无法在当前集群重新创建该Namespace(除非使用管理员工具把所有环境的AppNamespace删除后重建),确定要删除吗?
删除私有Namespace将导致实例获取不到此Namespace的配置,且页面会提示缺失Namespace(除非使用管理员工具删除AppNamespace),确定要删除吗?
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册