Skip to content

Commit dddd4fa

Browse files
committed
add missing env and namespace alert
1 parent e600f5b commit dddd4fa

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

apollo-portal/src/main/resources/static/scripts/controller/config/ConfigBaseInfoController.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr
105105
AppService.find_miss_envs($rootScope.pageContext.appId).then(function (result) {
106106
$scope.missEnvs = AppUtil.collectData(result);
107107

108+
if ($scope.missEnvs.length > 0) {
109+
toastr.warning("当前项目有环境缺失,请点击页面左侧『补缺环境』补齐数据");
110+
}
111+
108112
$scope.findMissingNamespaces();
109113
});
110114
}
@@ -120,6 +124,9 @@ function ConfigBaseInfoController($rootScope, $scope, $window, $location, toastr
120124
AppService.find_missing_namespaces($rootScope.pageContext.appId, $rootScope.pageContext.env,
121125
$rootScope.pageContext.clusterName).then(function (result) {
122126
$scope.missingNamespaces = AppUtil.collectData(result);
127+
if ($scope.missingNamespaces.length > 0) {
128+
toastr.warning("当前环境有Namespace缺失,请点击页面左侧『补缺Namespace』补齐数据");
129+
}
123130
});
124131
}
125132
};

apollo-portal/src/main/resources/static/views/component/delete-namespace-modal.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h4 class="modal-title">
1212
删除Namespace将导致实例获取不到此Namespace的配置,确定要删除吗?
1313
</div>
1414
<div class="modal-body form-horizontal" ng-show="!toDeleteNamespace.isPublic">
15-
删除私有Namespace将导致实例获取不到此Namespace的配置,而且无法在当前集群重新创建该Namespace(除非使用管理员工具把所有环境的AppNamespace删除后重建),确定要删除吗?
15+
删除私有Namespace将导致实例获取不到此Namespace的配置,且页面会提示缺失Namespace(除非使用管理员工具删除AppNamespace),确定要删除吗?
1616
</div>
1717
<div class="modal-footer">
1818
<button type="button" class="btn btn-default" data-dismiss="modal">

0 commit comments

Comments
 (0)