From c6a84b498b46282f7dfb78702d2bb58aa623a04c Mon Sep 17 00:00:00 2001 From: Jason Song Date: Sun, 21 Jan 2024 11:19:44 +0800 Subject: [PATCH] Fix the issue that the length of private namespaces are mis-calculated --- CHANGES.md | 1 + .../resources/static/scripts/controller/NamespaceController.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6a4930af5d0..cccd30b1b50 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -7,6 +7,7 @@ Apollo 2.3.0 ------------------ * [Fix circular references on LdapAutoConfiguration](https://github.com/apolloconfig/apollo/pull/5055) * [Add comment for clusters and UI display](https://github.com/apolloconfig/apollo/pull/5072) +* [Fix the issue that the length of private namespaces are mis-calculated](https://github.com/apolloconfig/apollo/pull/5078) ------------------ diff --git a/apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js b/apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js index c458fd9ad3e..be2f8165d8f 100644 --- a/apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js +++ b/apollo-portal/src/main/resources/static/scripts/controller/NamespaceController.js @@ -86,7 +86,7 @@ namespace_module.controller("LinkNamespaceController", }; function shouldAppendNamespacePrefix() { - return $scope.appendNamespacePrefix; + return $scope.appNamespace.isPublic ? $scope.appendNamespacePrefix : false; } var selectedClusters = [];