mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-20 04:39:00 +08:00
### What problem does this PR solve? Feat: Replace the submit form button with ButtonLoading #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { ButtonLoading } from '@/components/ui/button';
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
@ -13,7 +14,6 @@ import {
|
||||
FormLabel,
|
||||
FormMessage,
|
||||
} from '@/components/ui/form';
|
||||
import { LoadingButton } from '@/components/ui/loading-button';
|
||||
import { MultiSelect } from '@/components/ui/multi-select';
|
||||
import { useSelectKnowledgeOptions } from '@/hooks/knowledge-hooks';
|
||||
import { IModalProps } from '@/interfaces/common';
|
||||
@ -113,16 +113,11 @@ export function LinkToDatasetDialog({
|
||||
onConnectToKnowledgeOk={onConnectToKnowledgeOk}
|
||||
></LinkToDatasetForm>
|
||||
<DialogFooter>
|
||||
<LoadingButton
|
||||
type="submit"
|
||||
variant={'tertiary'}
|
||||
form={FormId}
|
||||
loading={loading}
|
||||
>
|
||||
<ButtonLoading type="submit" form={FormId} loading={loading}>
|
||||
<div className="flex gap-2 items-center">
|
||||
<Link2 /> Save
|
||||
</div>
|
||||
</LoadingButton>
|
||||
</ButtonLoading>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
Reference in New Issue
Block a user