mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-21 20:06:06 +00:00
perf: pipeline deletion tips
This commit is contained in:
@@ -411,19 +411,18 @@ export default function PipelineFormComponent({
|
|||||||
<div className="sticky bottom-0 left-0 right-0 bg-background border-t p-4 mt-4">
|
<div className="sticky bottom-0 left-0 right-0 bg-background border-t p-4 mt-4">
|
||||||
<div className="flex justify-end items-center gap-2">
|
<div className="flex justify-end items-center gap-2">
|
||||||
{isEditMode && isDefaultPipeline && (
|
{isEditMode && isDefaultPipeline && (
|
||||||
<span className="text-red-500 text-[0.7rem]">
|
<span className="text-gray-500 text-[0.7rem]">
|
||||||
默认流水线不可删除
|
默认流水线不可删除
|
||||||
</span>
|
</span>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isEditMode && (
|
{isEditMode && !isDefaultPipeline && (
|
||||||
<Button
|
<Button
|
||||||
type="button"
|
type="button"
|
||||||
variant="destructive"
|
variant="destructive"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setShowDeleteConfirmModal(true);
|
setShowDeleteConfirmModal(true);
|
||||||
}}
|
}}
|
||||||
disabled={form.formState.isSubmitting || isDefaultPipeline}
|
|
||||||
className="cursor-pointer"
|
className="cursor-pointer"
|
||||||
>
|
>
|
||||||
删除
|
删除
|
||||||
|
|||||||
Reference in New Issue
Block a user