You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/07/18 14:12:54 UTC

[dolphinscheduler] branch dev updated: [Feat][UI] Added LDAP function. (#11029)

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

songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new ff34393333 [Feat][UI] Added LDAP function. (#11029)
ff34393333 is described below

commit ff34393333c076da74ef029cb4c60cf551f76b37
Author: songjianet <17...@qq.com>
AuthorDate: Mon Jul 18 22:12:45 2022 +0800

    [Feat][UI] Added LDAP function. (#11029)
---
 dolphinscheduler-ui/src/layouts/content/use-dataList.ts | 3 ++-
 dolphinscheduler-ui/src/service/modules/users/types.ts  | 1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/dolphinscheduler-ui/src/layouts/content/use-dataList.ts b/dolphinscheduler-ui/src/layouts/content/use-dataList.ts
index a93293fc7b..37794158b8 100644
--- a/dolphinscheduler-ui/src/layouts/content/use-dataList.ts
+++ b/dolphinscheduler-ui/src/layouts/content/use-dataList.ts
@@ -340,7 +340,8 @@ export function useDataList() {
       {
         label: t('user_dropdown.password'),
         key: 'password',
-        icon: renderIcon(KeyOutlined)
+        icon: renderIcon(KeyOutlined),
+        disabled: (userStore.getUserInfo as UserInfoRes).securityConfigType !== 'PASSWORD'
       },
       {
         label: t('user_dropdown.logout'),
diff --git a/dolphinscheduler-ui/src/service/modules/users/types.ts b/dolphinscheduler-ui/src/service/modules/users/types.ts
index 33de77e215..fe06d8be0f 100644
--- a/dolphinscheduler-ui/src/service/modules/users/types.ts
+++ b/dolphinscheduler-ui/src/service/modules/users/types.ts
@@ -100,6 +100,7 @@ interface UserInfoRes extends UserReq, IdReq {
   alertGroup?: any
   createTime: string
   updateTime: string
+  securityConfigType: 'PASSWORD' | 'LDAP'
 }
 
 interface UserListRes {