You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by ji...@apache.org on 2022/04/07 07:19:09 UTC
[incubator-doris-manager] branch master updated: [fix](frontend)fix bug with role list navigate to role detail page failure (#34)
This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris-manager.git
The following commit(s) were added to refs/heads/master by this push:
new f934c10 [fix](frontend)fix bug with role list navigate to role detail page failure (#34)
f934c10 is described below
commit f934c10e94b0e3aae2aaef6887042f2116a52c20
Author: wangyongfeng <94...@qq.com>
AuthorDate: Thu Apr 7 15:19:04 2022 +0800
[fix](frontend)fix bug with role list navigate to role detail page failure (#34)
fix bug with role list navigate to role detail page failure
---
frontend/src/routes/admin/people/role/list/list.tsx | 4 +++-
frontend/src/routes/admin/people/role/member/member.tsx | 2 +-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/frontend/src/routes/admin/people/role/list/list.tsx b/frontend/src/routes/admin/people/role/list/list.tsx
index 062565e..0e4fc2b 100644
--- a/frontend/src/routes/admin/people/role/list/list.tsx
+++ b/frontend/src/routes/admin/people/role/list/list.tsx
@@ -39,7 +39,9 @@ export function RoleList() {
{
title: t`roleName`,
key: 'name',
- render: (record: IRole) => <FlatBtn to={record.id}>{showName(record.name)}</FlatBtn>,
+ render: (record: IRole) => (
+ <FlatBtn to={`/admin/people/role/${record.id}`}>{showName(record.name)}</FlatBtn>
+ ),
},
{
title: t`members`,
diff --git a/frontend/src/routes/admin/people/role/member/member.tsx b/frontend/src/routes/admin/people/role/member/member.tsx
index 678b62b..0dcecf9 100644
--- a/frontend/src/routes/admin/people/role/member/member.tsx
+++ b/frontend/src/routes/admin/people/role/member/member.tsx
@@ -33,7 +33,7 @@ import { useMatch } from 'react-router';
export function RoleMembers() {
const { t } = useTranslation();
- const match = useMatch('admin/role/:roleId');
+ const match = useMatch('admin/people/role/:roleId');
const roleId = match?.params.roleId as string;
const { users } = useSpaceUsers();
const { members, getRoleMembers, loading } = useRoleMember(roleId);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org