Skip to content

Commit

Permalink
Merge pull request #885 from yaacov/rename-migrate-create-migration-plan
Browse files Browse the repository at this point in the history
🧼 Rename the migrate button create migration plan
  • Loading branch information
yaacov authored Feb 6, 2024
2 parents 4f4e0d9 + 79e3e0c commit 2225acc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"Create a migration plan and select VMs from the source provider for migration.": "Create a migration plan and select VMs from the source provider for migration.",
"Create and edit": "Create and edit",
"Create and start": "Create and start",
"Create migration plan": "Create migration plan",
"Create NetworkMap": "Create NetworkMap",
"Create new provider": "Create new provider",
"Create plan": "Create plan",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { VmData } from './VMCellProps';
export const MigrationAction: FC<{
selectedVms: VmData[];
provider: V1beta1Provider;
}> = ({ selectedVms, provider }) => {
className?: string;
}> = ({ selectedVms, provider, className }) => {
const { t } = useForkliftTranslation();
const history = useHistory();
const namespace = provider?.metadata?.namespace;
Expand All @@ -23,16 +24,16 @@ export const MigrationAction: FC<{
});
const { setData } = useCreateVmMigrationData();
return (
<ToolbarItem>
<ToolbarItem className={className}>
<Button
variant="secondary"
variant="primary"
onClick={() => {
setData({ selectedVms, provider });
history.push(`${planListURL}/fast-create`);
}}
isDisabled={!selectedVms?.length}
>
{t('Migrate')}
{t('Create migration plan')}
</Button>
</ToolbarItem>
);
Expand Down

0 comments on commit 2225acc

Please sign in to comment.