Skip to content

Commit 09fe3af

Browse files
authored
Removed confirmation box in enable call home screen (#2674)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
1 parent 50a6c61 commit 09fe3af

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

portal-ui/src/screens/Console/Support/CallHomeConfirmation.tsx

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import { ErrorResponseHandler } from "../../../common/types";
2323
import { setErrorSnackMessage, setSnackBarMessage } from "../../../systemSlice";
2424
import { useAppDispatch } from "../../../store";
2525
import ModalWrapper from "../Common/ModalWrapper/ModalWrapper";
26-
import InputBoxWrapper from "../Common/FormComponents/InputBoxWrapper/InputBoxWrapper";
2726

2827
interface ICallHomeConfirmation {
2928
onClose: (refresh: boolean) => any;
@@ -43,7 +42,6 @@ const CallHomeConfirmation = ({
4342
const dispatch = useAppDispatch();
4443

4544
const [loading, setLoading] = useState<boolean>(false);
46-
const [confirmText, setConfirmText] = useState<string>("");
4745

4846
const onConfirmAction = () => {
4947
setLoading(true);
@@ -157,18 +155,6 @@ const CallHomeConfirmation = ({
157155
available in your SUBNET Account and it will not be shared to other
158156
persons or entities besides MinIO team and you.
159157
</Grid>
160-
To continue please type <b>CONFIRM</b> in the box.
161-
<Grid item xs={12} sx={{ marginBottom: 10 }}>
162-
<InputBoxWrapper
163-
id="retype-tenant"
164-
name="retype-tenant"
165-
onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
166-
setConfirmText(event.target.value);
167-
}}
168-
label=""
169-
value={confirmText}
170-
/>
171-
</Grid>
172158
{loading && (
173159
<Grid
174160
item
@@ -204,7 +190,7 @@ const CallHomeConfirmation = ({
204190
type="submit"
205191
variant={"callAction"}
206192
color="primary"
207-
disabled={loading || confirmText !== "CONFIRM"}
193+
disabled={loading}
208194
label={"Yes, Save this Configuration"}
209195
onClick={onConfirmAction}
210196
/>

0 commit comments

Comments
 (0)