mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-24 15:36:50 +08:00
### What problem does this PR solve? Feat: When the webhook returns a field in streaming format, the message displays the status field. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality) Co-authored-by: balibabu <assassin_cike@163.com>
20 lines
478 B
TypeScript
20 lines
478 B
TypeScript
import { useTranslation } from 'react-i18next';
|
|
import { RAGFlowFormItem } from './ragflow-form';
|
|
import { Input } from './ui/input';
|
|
|
|
type WebHookResponseStatusFormFieldProps = {
|
|
name: string;
|
|
};
|
|
|
|
export function WebHookResponseStatusFormField({
|
|
name,
|
|
}: WebHookResponseStatusFormFieldProps) {
|
|
const { t } = useTranslation();
|
|
|
|
return (
|
|
<RAGFlowFormItem name={name} label={t('flow.webhook.status')}>
|
|
<Input type="number"></Input>
|
|
</RAGFlowFormItem>
|
|
);
|
|
}
|