Skip to content

Commit

Permalink
Rename the migrate button create migration plan
Browse files Browse the repository at this point in the history
Signed-off-by: yzamir <[email protected]>
  • Loading branch information
yaacov committed Feb 6, 2024
1 parent 4f4e0d9 commit 79e3e0c
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 79e3e0c

Please sign in to comment.