Forráskód Böngészése

Switch default wizard transfer type to `Migration`

Daniel Vincze 1 éve
szülő
commit
26c17bb628

+ 1 - 1
src/components/smart/DashboardPage/DashboardPage.tsx

@@ -148,7 +148,7 @@ class ProjectsPage extends React.Component<{ history: any }, State> {
               licenceError={licenceStore.licenceInfoError}
               transfersLoading={transferStore.loading}
               onNewTransferClick={() => {
-                this.props.history.push("/wizard/replica");
+                this.props.history.push("/wizard/migration");
               }}
               onNewEndpointClick={() => {
                 this.handleNewEndpointClick();

+ 1 - 1
src/components/smart/TransfersPage/TransfersPage.tsx

@@ -243,7 +243,7 @@ class TransfersPage extends React.Component<{ history: any }, State> {
   }
 
   handleEmptyListButtonClick() {
-    this.props.history.push("/wizard/replica");
+    this.props.history.push("/wizard/migration");
   }
 
   handleModalOpen() {

+ 1 - 1
src/components/ui/Dropdowns/NewItemDropdown/NewItemDropdown.spec.tsx

@@ -42,7 +42,7 @@ describe("NewItemDropdown", () => {
     render(<NewItemDropdown onChange={() => {}} />);
     TestUtils.select("DropdownButton__Wrapper")!.click();
     const listItems = TestUtils.selectAll("NewItemDropdown__ListItem");
-    expect(listItems[0].getAttribute("to")).toBe("/wizard/replica");
+    expect(listItems[0].getAttribute("to")).toBe("/wizard/migration");
     expect(listItems[1].getAttribute("to")).toBe("#");
   });
 });

+ 1 - 1
src/components/ui/Dropdowns/NewItemDropdown/NewItemDropdown.tsx

@@ -176,7 +176,7 @@ class NewItemDropdown extends React.Component<Props, State> {
     const items: ItemType[] = [
       {
         title: "Transfer",
-        href: "/wizard/replica",
+        href: "/wizard/migration",
         description: "Incrementally transfer VMs between two clouds",
         iconName: "replica",
       },