Scheduling bug fixes. IO-153

This commit is contained in:
Patrick Fic
2021-02-01 11:04:33 -08:00
parent bf83ae5779
commit 5bbd56115e
4 changed files with 30 additions and 7 deletions

View File

@@ -1,4 +1,4 @@
import { Button, Col, Form, Row, Select, Switch, Card } from "antd";
import { Button, Card, Col, Form, Row, Select, Switch } from "antd";
import axios from "axios";
import moment from "moment";
import React, { useState } from "react";
@@ -124,8 +124,12 @@ export function ScheduleJobModalComponent({
>
<Switch />
</Form.Item>
<Form.Item name="email" label={t("jobs.fields.ownr_ea")}>
<EmailInput />
<Form.Item shouldUpdate>
{() => (
<Form.Item name="email" label={t("jobs.fields.ownr_ea")}>
<EmailInput disabled={!form.getFieldValue("notifyCustomer")} />
</Form.Item>
)}
</Form.Item>
</LayoutFormRow>
<LayoutFormRow grow>