diff --git a/src/main/index.ts b/src/main/index.ts index c971391b..f6f3dadf 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -8,7 +8,7 @@ * Copyright Contributors to the Zowe Project. */ -import { app, BrowserWindow, dialog, ipcMain } from 'electron'; +import { app, BrowserWindow, ipcMain, dialog } from 'electron'; import MenuBuilder from './menu'; import { HomeActions } from "../actions/HomeActions"; import { ConnectionActions } from "../actions/ConnectionActions"; @@ -54,6 +54,12 @@ const createWindow = (): void => { return res; }); + ipcMain.handle('upload-pax', async (event) => { + return await dialog.showOpenDialog({ properties: ['openFile'], filters: [ + { name: 'pax', extensions: ['pax'] }, + ] }); + }); + ipcMain.handle('get-installation-history', (event) => { const res: IResponse = HomeActions.findPreviousInstallations(); return res; diff --git a/src/renderer/components/stages/installation/Installation.tsx b/src/renderer/components/stages/installation/Installation.tsx index 023c6ac5..46c95723 100644 --- a/src/renderer/components/stages/installation/Installation.tsx +++ b/src/renderer/components/stages/installation/Installation.tsx @@ -30,6 +30,7 @@ const Installation = () => { const setupSchema = schema.properties.zowe.properties.setup.properties.dataset; const [setupYaml, setSetupYaml] = useState(yaml.zowe.setup.dataset); const [showProgress, toggleProgress] = useState(false); + const [paxPath, setPaxPath] = useState("No pax file selected."); const [installationProgress, setInstallationProgress] = useState({ uploadYaml: false, download: false, @@ -110,11 +111,23 @@ const Installation = () => { return ( - + {`Ready to download Zowe ${version} and deploy it to the ${installationArgs.installationDir} Then we will install MVS data sets, please provide HLQ below`} + + + {`${paxPath}`} +