Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug 1989462: MTV string changes #9705

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -795,11 +795,11 @@
"copy to clipboard": "copy to clipboard",
"Launch Migration Tool": "Launch Migration Tool",
"Install Migration Tool": "Install Migration Tool",
"Install ForkLift Instance": "Install ForkLift Instance",
"Deploy Migration Tool Instance": "Deploy Migration Tool Instance",
"ForkLift Instance is building...": "ForkLift Instance is building...",
"Migration Tool Operator required": "Migration Tool Operator required",
"The Migration Toolkit operator is successfully installed, please install Forklift instance in order to use the Migration Toolkit": "The Migration Toolkit operator is successfully installed, please install Forklift instance in order to use the Migration Toolkit",
"<0>The Migration Tool for Virtualization Operator facilitates the migration of multiple Virtual Machine workloads to Openshift Virtualization.</0><1>Clicking the Install Migration Toolkit button will take you to the <2>OperatorHub.</2></1><2>After the operator installation, please restart the Forklift instance</2>": "<0>The Migration Tool for Virtualization Operator facilitates the migration of multiple Virtual Machine workloads to Openshift Virtualization.</0><1>Clicking the Install Migration Toolkit button will take you to the <2>OperatorHub.</2></1><2>After the operator installation, please restart the Forklift instance</2>",
"The Migration Toolkit operator is successfully installed, please deploy Migration Tool instance in order to use the Migration Toolkit": "The Migration Toolkit operator is successfully installed, please deploy Migration Tool instance in order to use the Migration Toolkit",
"The Migration Tool for Virtualization Operator facilitates the migration of multiple Virtual Machine workloads to Openshift Virtualization. Clicking the Install Migration Toolkit button will take you to the <2>OperatorHub.</2> After the operator installation, please deploy the instance by clicking on ForkliftController -&gt; Create an instance. For more information please refer to the <6>official documentation</6>": "The Migration Tool for Virtualization Operator facilitates the migration of multiple Virtual Machine workloads to Openshift Virtualization. Clicking the Install Migration Toolkit button will take you to the <2>OperatorHub.</2> After the operator installation, please deploy the instance by clicking on ForkliftController -&gt; Create an instance. For more information please refer to the <6>official documentation</6>",
"The Migration Tool operator could not be installed because it is not available on the cluster": "The Migration Tool operator could not be installed because it is not available on the cluster",
"With Wizard": "With Wizard",
"With YAML": "With YAML",
Expand Down
Expand Up @@ -34,7 +34,7 @@ const MigrationTool = () => {
}
>
{!mtvSubscription && t('kubevirt-plugin~Install Migration Tool')}
{mtvSubscription && !mtvForkLift && t('kubevirt-plugin~Install ForkLift Instance')}
{mtvSubscription && !mtvForkLift && t('kubevirt-plugin~Deploy Migration Tool Instance')}
{mtvSubscription && mtvForkLift && t('kubevirt-plugin~ForkLift Instance is building...')}
</Button>
)}
Expand Down
@@ -1,5 +1,5 @@
import * as React from 'react';
import { Alert, Text, TextVariants } from '@patternfly/react-core';
import { Alert } from '@patternfly/react-core';
import { Trans, useTranslation } from 'react-i18next';
import { Link, useHistory } from 'react-router-dom';
import {
Expand All @@ -15,7 +15,6 @@ import {
SubscriptionsKind,
} from '../../../utils/migration-tool-utils';
import { ModalFooter } from '../../modals/modal/modal-footer';

import './migration-tool.scss';

type MigrationToolProps = ModalComponentProps & {
Expand Down Expand Up @@ -44,26 +43,20 @@ const MigrationTool: React.FC<MigrationToolProps> = ({
<ModalBody>
{mtvOperator ? (
mtvSubscription ? (
<Text component={TextVariants.p}>
{t(
'kubevirt-plugin~The Migration Toolkit operator is successfully installed, please install Forklift instance in order to use the Migration Toolkit',
)}
</Text>
t(
'kubevirt-plugin~The Migration Toolkit operator is successfully installed, please deploy Migration Tool instance in order to use the Migration Toolkit',
)
) : (
<Trans t={t} ns="kubevirt-plugin">
<Text component={TextVariants.p}>
The Migration Tool for Virtualization Operator facilitates the migration of multiple
Virtual Machine workloads to Openshift Virtualization.
</Text>
<Text component={TextVariants.p}>
Clicking the Install Migration Toolkit button will take you to the{' '}
<Link onClick={close} to={'/operatorhub'}>
OperatorHub.
</Link>
</Text>
<Text component={TextVariants.p}>
After the operator installation, please restart the Forklift instance
</Text>
The Migration Tool for Virtualization Operator facilitates the migration of multiple
Virtual Machine workloads to Openshift Virtualization. Clicking the Install Migration
Toolkit button will take you to the{' '}
<Link onClick={close} to={'/operatorhub'}>
OperatorHub.
</Link>{' '}
After the operator installation, please deploy the instance by clicking on
ForkliftController -&gt; Create an instance. For more information please refer to the{' '}
<ExternalLink href="https://red.ht/mtv-docs">official documentation</ExternalLink>
</Trans>
)
) : (
Expand All @@ -87,7 +80,7 @@ const MigrationTool: React.FC<MigrationToolProps> = ({
onCancel={close}
submitButtonText={
mtvSubscription
? t('kubevirt-plugin~Install ForkLift Instance')
? t('kubevirt-plugin~Deploy Migration Tool Instance')
: t('kubevirt-plugin~Install Migration Tool')
}
cancelButtonText={t('kubevirt-plugin~Close')}
Expand Down