mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-25 07:45:01 +00:00
ws pause after buttons click (#798)
* ws pause after buttons click * name change Co-authored-by: Igor Gov <iggvrv@gmail.com>
This commit is contained in:
parent
cb332cedd4
commit
884cb791fc
@ -76,7 +76,7 @@ export const TrafficPage: React.FC<TrafficPageProps> = ({setAnalyzeStatus}) => {
|
|||||||
const scrollableRef = useRef(null);
|
const scrollableRef = useRef(null);
|
||||||
|
|
||||||
const [openOasModal, setOpenOasModal] = useState(false);
|
const [openOasModal, setOpenOasModal] = useState(false);
|
||||||
const handleOpenModal = () => setOpenOasModal(true);
|
|
||||||
const handleCloseModal = () => setOpenOasModal(false);
|
const handleCloseModal = () => setOpenOasModal(false);
|
||||||
|
|
||||||
const [showTLSWarning, setShowTLSWarning] = useState(false);
|
const [showTLSWarning, setShowTLSWarning] = useState(false);
|
||||||
@ -258,8 +258,14 @@ export const TrafficPage: React.FC<TrafficPageProps> = ({setAnalyzeStatus}) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const handleOpenOasModal = () => {
|
||||||
|
ws.current.close();
|
||||||
|
setOpenOasModal(true);
|
||||||
|
}
|
||||||
|
|
||||||
const openServiceMapModalDebounce = debounce(() => {
|
const openServiceMapModalDebounce = debounce(() => {
|
||||||
setServiceMapModalOpen(true)
|
ws.current.close();
|
||||||
|
setServiceMapModalOpen(true);
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -285,7 +291,7 @@ export const TrafficPage: React.FC<TrafficPageProps> = ({setAnalyzeStatus}) => {
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
className={commonClasses.outlinedButton + " " + commonClasses.imagedButton}
|
className={commonClasses.outlinedButton + " " + commonClasses.imagedButton}
|
||||||
style={{ marginRight: 25 }}
|
style={{ marginRight: 25 }}
|
||||||
onClick={handleOpenModal}
|
onClick={handleOpenOasModal}
|
||||||
>
|
>
|
||||||
Show OAS
|
Show OAS
|
||||||
</Button>}
|
</Button>}
|
||||||
|
Loading…
Reference in New Issue
Block a user