IO-1722 Added reset button
This commit is contained in:
@@ -279,25 +279,49 @@ export default function ShopInfoSchedulingComponent({ form }) {
|
|||||||
<InputNumber />
|
<InputNumber />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
<Form.Item
|
<Space direction="horizontal">
|
||||||
label={t("bodyshop.fields.ssbuckets.color")}
|
<Form.Item
|
||||||
key={`${index}color`}
|
label={
|
||||||
name={[field.name, "color"]}
|
<Space>
|
||||||
>
|
{t("bodyshop.fields.ssbuckets.color")}
|
||||||
<ColorPicker />
|
<Button
|
||||||
</Form.Item>
|
size="small"
|
||||||
|
onClick={() => {
|
||||||
|
form.setFieldValue([
|
||||||
|
"ssbuckets",
|
||||||
|
field.name,
|
||||||
|
"color",
|
||||||
|
]);
|
||||||
|
|
||||||
<Space wrap>
|
form.setFields([
|
||||||
<DeleteFilled
|
{
|
||||||
onClick={() => {
|
name: ["ssbuckets", field.name, "color"],
|
||||||
remove(field.name);
|
touched: true,
|
||||||
}}
|
},
|
||||||
/>
|
]);
|
||||||
<FormListMoveArrows
|
}}
|
||||||
move={move}
|
>
|
||||||
index={index}
|
Reset
|
||||||
total={fields.length}
|
</Button>
|
||||||
/>
|
</Space>
|
||||||
|
}
|
||||||
|
key={`${index}color`}
|
||||||
|
name={[field.name, "color"]}
|
||||||
|
>
|
||||||
|
<ColorPicker />
|
||||||
|
</Form.Item>
|
||||||
|
<Space wrap>
|
||||||
|
<DeleteFilled
|
||||||
|
onClick={() => {
|
||||||
|
remove(field.name);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<FormListMoveArrows
|
||||||
|
move={move}
|
||||||
|
index={index}
|
||||||
|
total={fields.length}
|
||||||
|
/>
|
||||||
|
</Space>
|
||||||
</Space>
|
</Space>
|
||||||
</LayoutFormRow>
|
</LayoutFormRow>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|||||||
Reference in New Issue
Block a user