This is an automated email from the ASF dual-hosted git repository.

lzwang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new dc319cd1d9 [INLONG-8461][Dashboard] Cluster management tag 
optimization (#8465)
dc319cd1d9 is described below

commit dc319cd1d9b2bc077dd0d772e97ead236df46e04
Author: Lizhen <[email protected]>
AuthorDate: Fri Jul 7 15:58:41 2023 +0800

    [INLONG-8461][Dashboard] Cluster management tag optimization (#8465)
---
 inlong-dashboard/src/configs/menus/conf.tsx                    | 8 ++++----
 inlong-dashboard/src/ui/components/Layout/Tenant/index.tsx     | 3 ++-
 inlong-dashboard/src/ui/pages/TenantManagement/DetailModal.tsx | 3 ++-
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/inlong-dashboard/src/configs/menus/conf.tsx 
b/inlong-dashboard/src/configs/menus/conf.tsx
index 0552624d1e..00b1bb441f 100644
--- a/inlong-dashboard/src/configs/menus/conf.tsx
+++ b/inlong-dashboard/src/configs/menus/conf.tsx
@@ -55,14 +55,14 @@ const conf: MenuItemType[] = [
     name: i18n.t('configs.menus.Clusters'),
     icon: <DeploymentUnitOutlined />,
     children: [
-      {
-        path: '/clusters',
-        name: i18n.t('configs.menus.Clusters'),
-      },
       {
         path: '/clusterTags',
         name: i18n.t('configs.menus.ClusterTags'),
       },
+      {
+        path: '/clusters',
+        name: i18n.t('configs.menus.Clusters'),
+      },
     ],
   },
   {
diff --git a/inlong-dashboard/src/ui/components/Layout/Tenant/index.tsx 
b/inlong-dashboard/src/ui/components/Layout/Tenant/index.tsx
index b2da26d48a..f800fc57ce 100644
--- a/inlong-dashboard/src/ui/components/Layout/Tenant/index.tsx
+++ b/inlong-dashboard/src/ui/components/Layout/Tenant/index.tsx
@@ -54,9 +54,10 @@ const Comp: React.FC = () => {
 
   const { run: getStreamData } = useRequest(
     {
-      url: '/tenant/listByUser',
+      url: '/tenant/list',
       method: 'POST',
       data: {
+        listByLoginUser: true,
         ...options,
       },
     },
diff --git a/inlong-dashboard/src/ui/pages/TenantManagement/DetailModal.tsx 
b/inlong-dashboard/src/ui/pages/TenantManagement/DetailModal.tsx
index 64e8cfef41..72e5d7b06b 100644
--- a/inlong-dashboard/src/ui/pages/TenantManagement/DetailModal.tsx
+++ b/inlong-dashboard/src/ui/pages/TenantManagement/DetailModal.tsx
@@ -58,12 +58,13 @@ const Comp: React.FC<Props> = ({ id, ...modalProps }) => {
           options: {
             requestTrigger: ['onOpen', 'onSearch'],
             requestService: keyword => ({
-              url: '/tenant/listByUser',
+              url: '/tenant/list',
               method: 'POST',
               data: {
                 keyword,
                 pageNum: 1,
                 pageSize: 10,
+                listByLoginUser: true,
               },
             }),
             requestParams: {

Reply via email to