fix: approval, fix apply button bugs (#1271)
Reviewed-on: daoyoucloud/tachybase#1271 Co-authored-by: bai.zixv <bai.zixv@foxmail.com> Co-committed-by: bai.zixv <bai.zixv@foxmail.com>
This commit is contained in:
parent
86cc441465
commit
aec7cc918c
@ -43,8 +43,12 @@ export const LauncherActionConfigReSubmit = () => {
|
||||
type: 'void',
|
||||
title: restItemConfig.title,
|
||||
'x-decorator': 'ProviderActionResubmit',
|
||||
'x-decorator-props': {
|
||||
status: action,
|
||||
},
|
||||
'x-component': 'Action',
|
||||
'x-component-props': {
|
||||
...actionProps,
|
||||
confirm: {
|
||||
title: `{{t('resubmit', { ns: "${NAMESPACE}" })}}`,
|
||||
content: `{{t('Are you sure you want to resubmit it?', { ns: "${NAMESPACE}" })}}`,
|
||||
@ -53,6 +57,9 @@ export const LauncherActionConfigReSubmit = () => {
|
||||
},
|
||||
'x-designer': 'Action.Designer',
|
||||
'x-action': `reSubmit`,
|
||||
'x-action-settings': {
|
||||
assignedValues: {},
|
||||
},
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
@ -15,6 +15,7 @@ import { Button, Dropdown } from 'antd';
|
||||
|
||||
import { useTranslation } from '../../../../locale';
|
||||
import { FlowContextProvider } from '../../common/FlowContext.provider';
|
||||
import { useActionResubmit } from '../hooks/useActionResubmit';
|
||||
import { useSubmit } from './hooks/useSubmit';
|
||||
import { useWithdrawAction } from './hooks/useWithdrawAction';
|
||||
import { ActionBarProvider } from './Pd.ActionBar';
|
||||
@ -117,6 +118,7 @@ export const ApplyButton = () => {
|
||||
scope={{
|
||||
useSubmit: useSubmit,
|
||||
useWithdrawAction,
|
||||
useActionResubmit,
|
||||
}}
|
||||
/>
|
||||
</SchemaComponentContext.Provider>
|
||||
|
@ -0,0 +1,5 @@
|
||||
export function useActionResubmit() {
|
||||
return {
|
||||
run() {},
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user