diff --git a/src/app/instances/[name]/alarms/components/NewAlarmModal.tsx b/src/app/instances/[name]/alarms/components/NewAlarmModal.tsx index 5d9717a..a5b2e07 100644 --- a/src/app/instances/[name]/alarms/components/NewAlarmModal.tsx +++ b/src/app/instances/[name]/alarms/components/NewAlarmModal.tsx @@ -52,18 +52,18 @@ export const NewAlarmModal = ({ onClose, onAddAlarms }: Props) => { return false; } - if (memoryThreshold && (memoryThreshold < 0 || memoryThreshold > 100)) { + if (memoryThreshold && (memoryThreshold < 1 || memoryThreshold > 100)) { setErrors((prev) => [ ...prev, - "Memory threshold must be between 0 and 100.", + "Memory threshold must be between 1 and 100.", ]); return false; } - if (storageThreshold && (storageThreshold < 0 || storageThreshold > 100)) { + if (storageThreshold && (storageThreshold < 1 || storageThreshold > 100)) { setErrors((prev) => [ ...prev, - "Storage threshold must be between 0 and 100.", + "Storage threshold must be between 1 and 100.", ]); return false; } diff --git a/src/app/instances/[name]/configuration/components/ComponentsForm.tsx b/src/app/instances/[name]/configuration/components/ComponentsForm.tsx index 2e4629c..98ce4b5 100644 --- a/src/app/instances/[name]/configuration/components/ComponentsForm.tsx +++ b/src/app/instances/[name]/configuration/components/ComponentsForm.tsx @@ -9,7 +9,7 @@ interface Props { onChange: (e: React.ChangeEvent) => void; onSubmit: (e: React.FormEvent) => void; disabled: boolean; - pending: boolean; + isPending: boolean; } export default function ComponentsForm({ @@ -18,6 +18,7 @@ export default function ComponentsForm({ onChange, onSubmit, disabled, + isPending }: Props) { return (
@@ -55,13 +56,13 @@ export default function ComponentsForm({