refactor: replace Dialog with ProjectDialog in AIAgentConfigWorkbench component
This commit is contained in:
@@ -16,14 +16,9 @@ import { toast } from "sonner"
|
|||||||
|
|
||||||
import { ContentEditor } from "@/components/content-editor"
|
import { ContentEditor } from "@/components/content-editor"
|
||||||
import { OptionCombobox } from "@/components/option-combobox"
|
import { OptionCombobox } from "@/components/option-combobox"
|
||||||
|
import { ProjectDialog } from "@/components/project-dialog"
|
||||||
import { Badge } from "@/components/ui/badge"
|
import { Badge } from "@/components/ui/badge"
|
||||||
import { Button } from "@/components/ui/button"
|
import { Button } from "@/components/ui/button"
|
||||||
import {
|
|
||||||
Dialog,
|
|
||||||
DialogContent,
|
|
||||||
DialogHeader,
|
|
||||||
DialogTitle,
|
|
||||||
} from "@/components/ui/dialog"
|
|
||||||
import { Input } from "@/components/ui/input"
|
import { Input } from "@/components/ui/input"
|
||||||
import { Label } from "@/components/ui/label"
|
import { Label } from "@/components/ui/label"
|
||||||
import {
|
import {
|
||||||
@@ -1026,19 +1021,19 @@ export function AIAgentConfigWorkbench({
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<Dialog open={versionDialogOpen} onOpenChange={setVersionDialogOpen}>
|
<ProjectDialog
|
||||||
<DialogContent className="max-h-[80vh] overflow-hidden sm:max-w-4xl">
|
open={versionDialogOpen}
|
||||||
<DialogHeader>
|
onOpenChange={setVersionDialogOpen}
|
||||||
<DialogTitle>版本记录</DialogTitle>
|
title="版本记录"
|
||||||
</DialogHeader>
|
size="xl"
|
||||||
<VersionRecordsTable
|
>
|
||||||
agent={agent}
|
<VersionRecordsTable
|
||||||
agentRevisions={agentRevisions}
|
agent={agent}
|
||||||
onRollback={rollbackAgentRevision}
|
agentRevisions={agentRevisions}
|
||||||
rollbackDisabled={saving}
|
onRollback={rollbackAgentRevision}
|
||||||
/>
|
rollbackDisabled={saving}
|
||||||
</DialogContent>
|
/>
|
||||||
</Dialog>
|
</ProjectDialog>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user