[Added eslint] [Selection title]
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user