feature/IO-3702-ESPD-UI-AND-FIXES - Stage 3
This commit is contained in:
@@ -37,11 +37,11 @@ const SettingsConfig: FC = () => {
|
||||
// Placeholder for validation
|
||||
const isValid = validateField(fieldName, value);
|
||||
if (isValid) {
|
||||
window.electron.ipcRenderer.invoke(
|
||||
ipcTypes.toMain.settings.set,
|
||||
fieldName,
|
||||
value,
|
||||
);
|
||||
window.electron.ipcRenderer
|
||||
.invoke(ipcTypes.toMain.settings.set, fieldName, value)
|
||||
.catch((err) => {
|
||||
console.error(`Something went wrong: ${err?.message} || '`);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@@ -53,8 +53,8 @@ ipcRenderer.on(ipcTypes.toRenderer.watcher.stopped, () => {
|
||||
ipcRenderer.on(
|
||||
ipcTypes.toRenderer.watcher.error,
|
||||
(_event: Electron.IpcRendererEvent, error: string) => {
|
||||
console.log("Watcher has encountered an error");
|
||||
console.log(error);
|
||||
console.error(`Watcher has encountered an error:}`);
|
||||
console.dir(error);
|
||||
dispatch(watcherError(error));
|
||||
},
|
||||
);
|
||||
@@ -99,7 +99,7 @@ ipcRenderer.on(
|
||||
ipcTypes.toRenderer.general.showErrorMessage,
|
||||
(_event: Electron.IpcRendererEvent, error) => {
|
||||
notification.error({
|
||||
message: i18n.t("errors.notificationtitle"),
|
||||
title: i18n.t("errors.notificationtitle"),
|
||||
description: error,
|
||||
});
|
||||
},
|
||||
@@ -108,7 +108,7 @@ ipcRenderer.on(
|
||||
ipcTypes.toRenderer.scrub.scrubError,
|
||||
(_event: Electron.IpcRendererEvent, { message }) => {
|
||||
notification.error({
|
||||
message: i18n.t("errors.notificationtitle"),
|
||||
title: i18n.t("errors.notificationtitle"),
|
||||
description: message,
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user