[Added eslint] [Selection title]

This commit is contained in:
2021-03-23 16:11:43 -05:00
parent 59ad33b381
commit 83f2da9a0a
4 changed files with 39 additions and 5 deletions

View File

@@ -153,7 +153,7 @@ export const createMountReducer = (state) => {
S3Mounts: s3Mounts,
};
},
[RESET_MOUNTS_STATE]: (state, action) => {
[RESET_MOUNTS_STATE]: (state) => {
return { ...state, MountsBusy: false, MountState: mountState };
},
[SET_AUTO_MOUNT_PROCESSED]: (state, action) => {

View File

@@ -134,9 +134,15 @@ export const getSelectedVersionFromState = (state) => {
};
export const promptLocationAndSaveFile = (fileName, data, notifyError) => {
const location = ipcRenderer.sendSync(Constants.IPC_Select_File + '_sync', {Location: fileName, Title: 'Save File'});
const location = ipcRenderer.sendSync(Constants.IPC_Select_File + '_sync', {
Location: fileName,
Title: 'Save File',
});
if (location && location.length > 0) {
const ret = ipcRenderer.sendSync(Constants.IPC_Save_File + '_sync', {Location: location, Data: data});
const ret = ipcRenderer.sendSync(Constants.IPC_Save_File + '_sync', {
Location: location,
Data: data,
});
if (ret.success) {
return true;
}
@@ -148,9 +154,13 @@ export const promptLocationAndSaveFile = (fileName, data, notifyError) => {
};
export const promptLocationAndReadFile = (notifyError) => {
const location = ipcRenderer.sendSync(Constants.IPC_Browse_File + '_sync', {Title: 'Open File'});
const location = ipcRenderer.sendSync(Constants.IPC_Browse_File + '_sync', {
Title: 'Open File',
});
if (location && location.length > 0) {
const ret = ipcRenderer.sendSync(Constants.IPC_Read_File + '_sync', {Location: location});
const ret = ipcRenderer.sendSync(Constants.IPC_Read_File + '_sync', {
Location: location,
});
if (ret.success) {
return ret.contents;
}