-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CNV-32374: Move template params to Catalog drawer
Move setting of the template parameters that used to be present in "Customize VirtualMachine" page one step back - to the Catalog drawer. Remove "Customize VirtualMachine" page. Fixes https://issues.redhat.com/browse/CNV-32374
- Loading branch information
Hilda Stastna
committed
Sep 27, 2023
1 parent
7dd4b8b
commit 084d232
Showing
15 changed files
with
301 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,23 @@ | ||
import * as React from 'react'; | ||
import React, { FC } from 'react'; | ||
import { Route, Switch } from 'react-router-dom'; | ||
|
||
import CreateVMHorizontalNav from './CreateVMHorizontalNav/CreateVMHorizontalNav'; | ||
import CustomizeVirtualMachine from './customize/CustomizeVirtualMachine'; | ||
import { WizardVMContextProvider } from './utils/WizardVMContext'; | ||
import Wizard from './wizard/Wizard'; | ||
|
||
const Catalog: React.FC = () => { | ||
return ( | ||
<WizardVMContextProvider> | ||
<Switch> | ||
<Route | ||
path={[ | ||
'/k8s/ns/:ns/templatescatalog/customize', | ||
'/k8s/all-namespaces/templatescatalog/customize', | ||
]} | ||
component={CustomizeVirtualMachine} | ||
/> | ||
<Route | ||
path={[ | ||
'/k8s/ns/:ns/templatescatalog/review', | ||
'/k8s/all-namespaces/templatescatalog/review', | ||
]} | ||
component={Wizard} | ||
/> | ||
<Route component={CreateVMHorizontalNav} /> | ||
</Switch> | ||
</WizardVMContextProvider> | ||
); | ||
}; | ||
const Catalog: FC = () => ( | ||
<WizardVMContextProvider> | ||
<Switch> | ||
<Route | ||
path={[ | ||
'/k8s/ns/:ns/templatescatalog/review', | ||
'/k8s/all-namespaces/templatescatalog/review', | ||
]} | ||
component={Wizard} | ||
/> | ||
<Route component={CreateVMHorizontalNav} /> | ||
</Switch> | ||
</WizardVMContextProvider> | ||
); | ||
|
||
export default Catalog; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
src/views/catalog/customize/components/CustomizeVirtualMachineHeader.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
src/views/catalog/customize/components/FormActionGroup.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.