Added further logging. RPS-4
This commit is contained in:
@@ -1,11 +1,19 @@
|
||||
import { Button, Result } from "antd";
|
||||
import React from "react";
|
||||
import ipcTypes from "../../../ipc.types";
|
||||
|
||||
const { ipcRenderer } = window;
|
||||
export default function ErrorResultAtom({
|
||||
title,
|
||||
errorMessage,
|
||||
tryAgainCallback,
|
||||
}) {
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
event: "ERROR_RESULT_ATOM_DISPLAYED",
|
||||
title,
|
||||
errorMessage,
|
||||
});
|
||||
|
||||
return (
|
||||
<Result
|
||||
status="500"
|
||||
|
||||
@@ -17,6 +17,11 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
|
||||
export function WatcherPollingMolecule({ appSettings }) {
|
||||
const handleChange = (val) => {
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
event: "TOGGLE_NOTIFICATION",
|
||||
enabled: val,
|
||||
});
|
||||
|
||||
ipcRenderer.send(ipcTypes.default.store.set, {
|
||||
enableNotifications: val,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user