瀏覽代碼

Misc changes (#2637)

* refactor app namespace duplicate message

* fix non-properties namespace display issue
Jason Song 5 年之前
父節點
當前提交
9636d5f5e9

+ 1 - 1
apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java

@@ -178,7 +178,7 @@ public class AppNamespaceService {
   private void checkPublicAppNamespaceGlobalUniqueness(AppNamespace appNamespace) {
     AppNamespace publicAppNamespace = findPublicAppNamespace(appNamespace.getName());
     if (publicAppNamespace != null) {
-      throw new BadRequestException("Public AppNamespace " + appNamespace.getName() + " already exists in appId: " + publicAppNamespace.getAppId() + "!");
+      throw new BadRequestException("AppNamespace " + appNamespace.getName() + " already exists as public namespace in appId: " + publicAppNamespace.getAppId() + "!");
     }
   }
 

+ 5 - 0
apollo-portal/src/main/resources/static/scripts/directive/directive.js

@@ -13,6 +13,11 @@ directive_module.directive('apollonav',
                                            scope.pageSetting = setting;
                                        });
 
+                                       // Looks like a trick to make xml/yml/json namespaces display right, but why?
+                                       $(document).on('click', function () {
+                                           scope.$apply(function () {});
+                                       });
+
                                        $('#app-search-list').select2({
                                            placeholder: '搜索项目(AppId、项目名)',
                                            ajax: {