Răsfoiți Sursa

Completely disable migrations view/routes.

Signed-off-by: Nashwan Azhari <nazhari@cloudbasesolutions.com>
Nashwan Azhari 1 an în urmă
părinte
comite
0facd2169b

+ 0 - 5
src/components/App.tsx

@@ -24,8 +24,6 @@ import LoginPage from "@src/components/smart/LoginPage";
 import ReplicasPage from "@src/components/smart/ReplicasPage";
 import MessagePage from "@src/components/smart/MessagePage";
 import ReplicaDetailsPage from "@src/components/smart/ReplicaDetailsPage";
-import MigrationsPage from "@src/components/smart/MigrationsPage";
-import MigrationDetailsPage from "@src/components/smart/MigrationDetailsPage";
 import DeploymentsPage from "@src/components/smart/DeploymentsPage";
 import DeploymentDetailsPage from "@src/components/smart/DeploymentDetailsPage";
 import MetalHubServersPage from "@src/components/smart/MetalHubServersPage";
@@ -216,9 +214,6 @@ class App extends React.Component<Record<string, unknown>, State> {
             {renderRoute("/replicas", ReplicasPage, true)}
             {renderRoute("/replicas/:id", ReplicaDetailsPage, true)}
             {renderRoute("/replicas/:id/:page", ReplicaDetailsPage)}
-            {renderRoute("/migrations", MigrationsPage, true)}
-            {renderRoute("/migrations/:id", MigrationDetailsPage, true)}
-            {renderRoute("/migrations/:id/:page", MigrationDetailsPage)}
             {renderRoute("/deployments", DeploymentsPage, true)}
             {renderRoute("/deployments/:id", DeploymentDetailsPage, true)}
             {renderRoute("/deployments/:id/:page", DeploymentDetailsPage)}

+ 0 - 4
src/components/modules/NavigationModule/Navigation/Navigation.tsx

@@ -410,10 +410,6 @@ class Navigation extends React.Component<Props> {
               bullet = "replica";
               menuImage = replicaImage;
               break;
-            case "migrations":
-              bullet = "migration";
-              menuImage = replicaImage;
-              break;
             case "deployments":
               bullet = "deployment";
               menuImage = replicaImage;

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

@@ -174,22 +174,22 @@ class NewItemDropdown extends React.Component<Props, State> {
       ? configLoader.config.disabledPages
       : [];
     const items: ItemType[] = [
+      // {
+      //   title: "Migration",
+      //   href: "/wizard/migration",
+      //   description: "Migrate VMs between two clouds",
+      //   iconName: "migration",
+      // },
+      // {
+      //   title: "Deployment",
+      //   href: "/wizard/deployment",
+      //   description: "Deploy an already synced Replica or Live Migration",
+      //   iconName: "replica",
+      // },
       {
-        title: "Migration",
-        href: "/wizard/migration",
-        description: "Migrate VMs between two clouds",
-        iconName: "migration",
-      },
-      {
-        title: "Replica",
+        title: "Transfer",
         href: "/wizard/replica",
-        description: "Incrementally replicate VMs between two clouds",
-        iconName: "replica",
-      },
-      {
-        title: "Deployment",
-        href: "/wizard/deployment",
-        description: "Deploy an already synced Replica or Live Migration",
+        description: "Incrementally transfer VMs between two clouds",
         iconName: "replica",
       },
       {

+ 1 - 1
src/constants.ts

@@ -24,7 +24,7 @@ export type NavigationMenuType = {
 export const navigationMenu: NavigationMenuType[] = [
   { label: "Dashboard", value: "dashboard" },
   { label: "Replicas", value: "replicas" },
-  { label: "Migrations", value: "migrations" },
+  // { label: "Migrations", value: "migrations" },
   { label: "Deployments", value: "deployments" },
   { label: "Cloud Endpoints", value: "endpoints" },
   { label: "Minion Pools", value: "minion-pools" },