mirror of
https://github.com/optim-enterprises-bv/OptimCloud-gw-ui.git
synced 2025-10-30 17: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 axiosInstance from '../../utils/axiosInstance';
|
||||
import eventBus from '../../utils/EventBus';
|
||||
import SuccessfulActionModalBody from '../../components/SuccessfulActionModalBody';
|
||||
|
||||
const ConfigureModal = ({ show, toggleModal }) => {
|
||||
const [hadSuccess, setHadSuccess] = useState(false);
|
||||
@@ -99,6 +100,9 @@ import {
|
||||
<CModalHeader closeButton>
|
||||
<CModalTitle>Configure Device</CModalTitle>
|
||||
</CModalHeader>
|
||||
{hadSuccess ?
|
||||
<SuccessfulActionModalBody toggleModal={toggleModal} /> :
|
||||
<div>
|
||||
<CModalBody>
|
||||
<h6>Enter new device configuration: </h6>
|
||||
<CRow style={{ marginTop: '20px' }}>
|
||||
@@ -148,6 +152,7 @@ import {
|
||||
Cancel
|
||||
</CButton>
|
||||
</CModalFooter>
|
||||
</div>}
|
||||
</CModal>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user