perf: pipeline deletion tips

This commit is contained in:
Junyan Qin
2025-05-10 12:29:53 +08:00
parent 98eafd704b
commit 2fd6659129
@@ -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"
> >