You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by zh...@apache.org on 2022/01/12 13:01:18 UTC
[dolphinscheduler] branch dev updated: [Feature][UI Next] Delete edit profile state. (#7966)
This is an automated email from the ASF dual-hosted git repository.
zhongjiajie 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 53e0124 [Feature][UI Next] Delete edit profile state. (#7966)
53e0124 is described below
commit 53e012441048322f6b29e911aa02ca40ef80486f
Author: songjianet <17...@qq.com>
AuthorDate: Wed Jan 12 21:01:08 2022 +0800
[Feature][UI Next] Delete edit profile state. (#7966)
---
dolphinscheduler-ui-next/src/views/profile/index.tsx | 10 ----------
dolphinscheduler-ui-next/src/views/profile/use-form.ts | 2 --
dolphinscheduler-ui-next/src/views/profile/use-update.ts | 2 +-
3 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/dolphinscheduler-ui-next/src/views/profile/index.tsx b/dolphinscheduler-ui-next/src/views/profile/index.tsx
index 8f75b99..0c54413 100644
--- a/dolphinscheduler-ui-next/src/views/profile/index.tsx
+++ b/dolphinscheduler-ui-next/src/views/profile/index.tsx
@@ -107,16 +107,6 @@ const profile = defineComponent({
placeholder={t('profile.phone_tips')}
/>
</NFormItem>
- <NFormItem label={t('profile.state')} path='state'>
- <NRadioGroup v-model={[this.profileForm.state, 'value']}>
- {[
- { value: 1, label: t('profile.enable') },
- { value: 0, label: t('profile.disable') },
- ].map((item) => {
- return <NRadio value={item.value}>{item.label}</NRadio>
- })}
- </NRadioGroup>
- </NFormItem>
</NForm>
),
}}
diff --git a/dolphinscheduler-ui-next/src/views/profile/use-form.ts b/dolphinscheduler-ui-next/src/views/profile/use-form.ts
index eb45fc1..7c7ac3c 100644
--- a/dolphinscheduler-ui-next/src/views/profile/use-form.ts
+++ b/dolphinscheduler-ui-next/src/views/profile/use-form.ts
@@ -32,7 +32,6 @@ export function useForm() {
username: userInfo.userName,
email: userInfo.email,
phone: userInfo.phone,
- state: userInfo.state,
},
rules: {
username: {
@@ -63,7 +62,6 @@ export function useForm() {
username: userInfo.userName,
email: userInfo.email,
phone: userInfo.phone,
- state: userInfo.state,
}
})
diff --git a/dolphinscheduler-ui-next/src/views/profile/use-update.ts b/dolphinscheduler-ui-next/src/views/profile/use-update.ts
index 632498b..59fb1a0 100644
--- a/dolphinscheduler-ui-next/src/views/profile/use-update.ts
+++ b/dolphinscheduler-ui-next/src/views/profile/use-update.ts
@@ -33,7 +33,7 @@ export function useUpdate(state: any) {
tenantId: userInfo.tenantId,
email: state.profileForm.email,
phone: state.profileForm.phone,
- state: state.profileForm.state,
+ state: userInfo.state,
queue: userInfo.queue,
})
}