Added further logging. RPS-4

This commit is contained in:
Patrick Fic
2020-10-22 20:57:01 -07:00
parent dc086cb5eb
commit 658f45b476
9 changed files with 123 additions and 94 deletions

View File

@@ -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"

View File

@@ -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,
});