mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-11-01 18:57:46 +00:00
Added command succesfuly submitted to config modal
This commit is contained in:
@@ -20,6 +20,7 @@ import {
|
|||||||
import { checkIfJson } from '../../utils/helper';
|
import { checkIfJson } from '../../utils/helper';
|
||||||
import axiosInstance from '../../utils/axiosInstance';
|
import axiosInstance from '../../utils/axiosInstance';
|
||||||
import eventBus from '../../utils/EventBus';
|
import eventBus from '../../utils/EventBus';
|
||||||
|
import SuccessfulActionModalBody from '../../components/SuccessfulActionModalBody';
|
||||||
|
|
||||||
const ConfigureModal = ({ show, toggleModal }) => {
|
const ConfigureModal = ({ show, toggleModal }) => {
|
||||||
const [hadSuccess, setHadSuccess] = useState(false);
|
const [hadSuccess, setHadSuccess] = useState(false);
|
||||||
@@ -99,6 +100,9 @@ import {
|
|||||||
<CModalHeader closeButton>
|
<CModalHeader closeButton>
|
||||||
<CModalTitle>Configure Device</CModalTitle>
|
<CModalTitle>Configure Device</CModalTitle>
|
||||||
</CModalHeader>
|
</CModalHeader>
|
||||||
|
{hadSuccess ?
|
||||||
|
<SuccessfulActionModalBody toggleModal={toggleModal} /> :
|
||||||
|
<div>
|
||||||
<CModalBody>
|
<CModalBody>
|
||||||
<h6>Enter new device configuration: </h6>
|
<h6>Enter new device configuration: </h6>
|
||||||
<CRow style={{ marginTop: '20px' }}>
|
<CRow style={{ marginTop: '20px' }}>
|
||||||
@@ -148,6 +152,7 @@ import {
|
|||||||
Cancel
|
Cancel
|
||||||
</CButton>
|
</CButton>
|
||||||
</CModalFooter>
|
</CModalFooter>
|
||||||
|
</div>}
|
||||||
</CModal>
|
</CModal>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user