application insight fixes

This commit is contained in:
Elio Struyf
2022-01-30 19:56:13 +01:00
parent 936916acf8
commit fca0528a7e
22 changed files with 111 additions and 50 deletions

View File

@@ -19,6 +19,7 @@ import { ChevronRightIcon } from '@heroicons/react/outline';
import { ToastContainer, toast, Slide } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
import { DataType } from '../../../models/DataType';
import { TelemetryEvent } from '../../../constants';
export interface IDataViewProps {}
@@ -102,6 +103,10 @@ export const DataView: React.FunctionComponent<IDataViewProps> = (props: React.P
useEffect(() => {
Messenger.listen(messageListener);
Messenger.send(DashboardMessage.sendTelemetry, {
event: TelemetryEvent.webviewDataView
});
return () => {
Messenger.unlisten(messageListener);