This commit is contained in:
Alex Holliday committed 2024-12-12 12:42:32 +08:00
1 parent 3840b3ec2d
commit e33091f182
1 file changed
+1 -7
@@ -185,10 +185,6 @@ const CreateInfrastructureMonitor = () => {
}); });
}; };
const handleBlur = (event) => {
console.log("handleBlur", event);
};
const handleNotifications = (event, type) => { const handleNotifications = (event, type) => {
const { value } = event.target; const { value } = event.target;
let notifications = [...infrastructureMonitor.notifications]; let notifications = [...infrastructureMonitor.notifications];
@@ -340,7 +336,6 @@ const CreateInfrastructureMonitor = () => {
)} )}
value={user?.email} value={user?.email}
onChange={(event) => handleNotifications(event, "email")} onChange={(event) => handleNotifications(event, "email")}
onBlur={handleBlur}
/> />
</Stack> </Stack>
</ConfigBox> </ConfigBox>
@@ -372,7 +367,6 @@ const CreateInfrastructureMonitor = () => {
fieldName={METRIC_PREFIX + metric} fieldName={METRIC_PREFIX + metric}
fieldValue={infrastructureMonitor[METRIC_PREFIX + metric]} fieldValue={infrastructureMonitor[METRIC_PREFIX + metric]}
onFieldChange={handleChange} onFieldChange={handleChange}
onFieldBlur={handleBlur}
alertUnit={metric == "temperature" ? "°C" : "%"} alertUnit={metric == "temperature" ? "°C" : "%"}
/> />
); );
@@ -404,7 +398,7 @@ const CreateInfrastructureMonitor = () => {
label="Check frequency" label="Check frequency"
value={infrastructureMonitor.interval || 15} value={infrastructureMonitor.interval || 15}
onChange={handleChange} onChange={handleChange}
onBlur={handleBlur} onBlur={}
items={SELECT_VALUES} items={SELECT_VALUES}
/> />
</Stack> </Stack>