Minor fixes.
This commit is contained in:
@@ -20,8 +20,8 @@ Nucleus.onError = (type, err) => {
|
||||
};
|
||||
|
||||
ipcMain.on(ipcTypes.app.toMain.setUserName, (event, userName) => {
|
||||
Nucleus.appStarted();
|
||||
Nucleus.setUserId(userName);
|
||||
Nucleus.appStarted();
|
||||
});
|
||||
|
||||
ipcMain.on(ipcTypes.app.toMain.track, (e, args) => {
|
||||
|
||||
@@ -51,8 +51,8 @@ async function DecodeEstimate(filePath, includeFilePathInReturnJob = false) {
|
||||
|
||||
const ad2 = await DecodeAd2File(extensionlessFilePath);
|
||||
|
||||
if (job.OWNR_FN === "") job.OWNR_FN = ad2.CLMT_FN;
|
||||
if (job.OWNR_LN === "") job.OWNR_LN = ad2.CLMT_LN;
|
||||
if (job.OWNR_FN === "" || !job.OWNR_FN) job.OWNR_FN = ad2.CLMT_FN;
|
||||
if (job.OWNR_LN === "" || !job.OWNR_LN) job.OWNR_LN = ad2.CLMT_LN;
|
||||
|
||||
const accepted_ins_co = store.get("accepted_ins_co");
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ async function StartWatcher() {
|
||||
.on("error", function (error) {
|
||||
log.error("Error in Watcher", error);
|
||||
const b = BrowserWindow.getFocusedWindow();
|
||||
b.webContents.send(ipcTypes.fileWatcher.toRenderer.error, error);
|
||||
b.webContents.send(ipcTypes.default.fileWatcher.toRenderer.error, error);
|
||||
Nucleus.track("WATCHER_ERROR", error);
|
||||
})
|
||||
.on("ready", onWatcherReady)
|
||||
|
||||
@@ -67,7 +67,7 @@ var menu = Menu.buildFromTemplate([
|
||||
// Other code removed for brevity
|
||||
},
|
||||
{
|
||||
label: "Help",
|
||||
label: isDev ? "DEVELOPMENT -- HELP" : "Help",
|
||||
submenu: [
|
||||
{
|
||||
label: "Rescue",
|
||||
|
||||
@@ -4,12 +4,11 @@ import { Dropdown, List, Menu, Spin } from "antd";
|
||||
import React, { useState } from "react";
|
||||
import InfiniteScroll from "react-infinite-scroller";
|
||||
import { SEARCH_JOBS_PAGINATED } from "../../../graphql/jobs.queries";
|
||||
import ipcTypes from "../../../ipc.types";
|
||||
import ErrorResultAtom from "../../atoms/error-result/error-result.atom";
|
||||
import JobsListItemMolecule from "../../molecules/jobs-list-item/jobs-list-item.molecule";
|
||||
import JobsSearchFieldsMolecule from "../../molecules/jobs-search-fields/jobs-search-fields.molecule";
|
||||
|
||||
const { ipcRenderer } = window;
|
||||
|
||||
|
||||
const limit = 20;
|
||||
export default function JobsTableOrganism() {
|
||||
@@ -36,9 +35,9 @@ export default function JobsTableOrganism() {
|
||||
|
||||
const handleInfiniteOnLoad = (page) => {
|
||||
if (fetchMore) {
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
event: "FETCH_MORE_JOBS",
|
||||
});
|
||||
// ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
// event: "FETCH_MORE_JOBS",
|
||||
// });
|
||||
fetchMore({
|
||||
variables: {
|
||||
offset: limit * page,
|
||||
|
||||
@@ -57,9 +57,9 @@ const applicationReducer = (state = INITIAL_STATE, action) => {
|
||||
selectedJobTargetPc: action.payload,
|
||||
};
|
||||
case ApplicationActionTypes.SET_SELECTED_JOB_ID:
|
||||
ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
event: "SET_SELECTED_JOB",
|
||||
});
|
||||
// ipcRenderer.send(ipcTypes.default.app.toMain.track, {
|
||||
// event: "SET_SELECTED_JOB",
|
||||
// });
|
||||
return { ...state, selectedJobId: action.payload };
|
||||
case ApplicationActionTypes.SET_SETTINGS:
|
||||
return { ...state, settings: { ...state.settings, ...action.payload } };
|
||||
|
||||
Reference in New Issue
Block a user