CreateImageWizard: rename google to gcp in form state
This commit is contained in:
parent
a16244edaa
commit
7aaedd67ab
4 changed files with 6 additions and 6 deletions
|
|
@ -79,7 +79,7 @@ const onSave = (values) => {
|
|||
requests.push(request);
|
||||
}
|
||||
|
||||
if (values['target-environment']?.google) {
|
||||
if (values['target-environment']?.gcp) {
|
||||
let share = '';
|
||||
switch (values['google-account-type']) {
|
||||
case 'googleAccount':
|
||||
|
|
|
|||
|
|
@ -129,7 +129,7 @@ const ReviewStep = () => {
|
|||
</TextContent>
|
||||
</ListItem>
|
||||
}
|
||||
{getState()?.values?.['target-environment']?.google &&
|
||||
{getState()?.values?.['target-environment']?.gcp &&
|
||||
<ListItem
|
||||
className='pf-c-list__item pf-u-mt-md'
|
||||
icon={ <img className='provider-icon' src='/apps/frontend-assets/partners-icons/google-cloud-short.svg' /> }>
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
|
|||
const [ environment, setEnvironment ] = useState({
|
||||
aws: false,
|
||||
azure: false,
|
||||
google: false,
|
||||
gcp: false,
|
||||
vsphere: false,
|
||||
'guest-image': false,
|
||||
'image-installer': false,
|
||||
|
|
@ -55,8 +55,8 @@ const TargetEnvironment = ({ label, isRequired, ...props }) => {
|
|||
icon={ <img
|
||||
className='provider-icon'
|
||||
src={ '/apps/frontend-assets/partners-icons/google-cloud-short.svg' } /> }
|
||||
onClick={ () => handleSetEnvironment('google') }
|
||||
isSelected={ environment.google }
|
||||
onClick={ () => handleSetEnvironment('gcp') }
|
||||
isSelected={ environment.gcp }
|
||||
isStacked
|
||||
isDisplayLarge />
|
||||
<Tile
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export default ({ 'target-environment': targetEnv, release } = {}, { skipAws, sk
|
|||
return 'aws-target-env';
|
||||
}
|
||||
|
||||
if (!skipGoogle && targetEnv?.google) {
|
||||
if (!skipGoogle && targetEnv?.gcp) {
|
||||
return 'google-cloud-target-env';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue