mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-14 06:30:57 +00:00
feat: pipeline deletion
This commit is contained in:
@@ -28,6 +28,8 @@ export default function PluginConfigPage() {
|
||||
output: {},
|
||||
});
|
||||
const [disableForm, setDisableForm] = useState(false);
|
||||
const [selectedPipelineIsDefault, setSelectedPipelineIsDefault] =
|
||||
useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
getPipelines();
|
||||
@@ -81,6 +83,7 @@ export default function PluginConfigPage() {
|
||||
safety: value.pipeline.config.safety,
|
||||
trigger: value.pipeline.config.trigger,
|
||||
});
|
||||
setSelectedPipelineIsDefault(value.pipeline.is_default ?? false);
|
||||
setDisableForm(false);
|
||||
});
|
||||
}
|
||||
@@ -111,6 +114,7 @@ export default function PluginConfigPage() {
|
||||
pipelineId={selectedPipelineId}
|
||||
disableForm={disableForm}
|
||||
initValues={selectedPipelineFormValue}
|
||||
isDefaultPipeline={selectedPipelineIsDefault}
|
||||
/>
|
||||
</div>
|
||||
</DialogContent>
|
||||
|
||||
Reference in New Issue
Block a user