diff --git a/frontend/src/components/format/FormatConditionsTab.jsx b/frontend/src/components/format/FormatConditionsTab.jsx index 60f6694..a4f8b6f 100644 --- a/frontend/src/components/format/FormatConditionsTab.jsx +++ b/frontend/src/components/format/FormatConditionsTab.jsx @@ -22,6 +22,28 @@ const FormatConditionsTab = ({conditions, onConditionsChange}) => { onConditionsChange(conditions.filter((_, i) => i !== index)); }; + const handleMoveUp = index => { + if (index > 0) { + const newConditions = [...conditions]; + [newConditions[index - 1], newConditions[index]] = [ + newConditions[index], + newConditions[index - 1] + ]; + onConditionsChange(newConditions); + } + }; + + const handleMoveDown = index => { + if (index < conditions.length - 1) { + const newConditions = [...conditions]; + [newConditions[index], newConditions[index + 1]] = [ + newConditions[index + 1], + newConditions[index] + ]; + onConditionsChange(newConditions); + } + }; + if (isLoading) { return