Browse Source

- Fixes notification on add migration/replica
- Updates description for migration
- Updates config coriolis url

George Vrancianu 9 years ago
parent
commit
1a9b90f57d

File diff suppressed because it is too large
+ 0 - 0
src/components/App/App.scss


+ 1 - 3
src/components/WizardMigrationType/WizardMigrationType.js

@@ -111,9 +111,7 @@ class WizardMigrationType extends Component {
           </label>
           <div className={s.containerLeft + " " + (this.state.migrationType != 'replica' ? s.selected : "")}>
             <h3>Coriolis Migration</h3>
-            <p>A Coriolis Migration is a one time move one ore more virtual machine.
-              Whatever Blue Bottle Neutra irony 8-bit. Kogi ethnic ugh fashion axe bicycle rights. Gluten-free Odd
-              Future American </p>
+            <p>A Coriolis® Migration is a full instance migration between two cloud endpoints.</p>
           </div>
           <div className={s.containerRight + " " + (this.state.migrationType == 'replica' ? s.selected : "")}>
             <h3>Coriolis Replica</h3>

+ 1 - 1
src/config.js

@@ -20,7 +20,7 @@
 
 export const port = process.env.PORT || 3000;
 export const host = process.env.WEBSITE_HOSTNAME || `localhost:${port}`;
-export const coriolisUrl = "http://10.7.1.44/"
+export const coriolisUrl = "/"
 export const defaultDomain = "default";
 
 // Number of instances in wizard Migrate VMs step

+ 8 - 4
src/stores/NotificationsStore/NotificationsStore.js

@@ -74,9 +74,12 @@ class NotificationsStore extends Reflux.Store
     this.setState({notifications: notifications})
   }
 
-  onAddMigration(response) {
+  onAddMigrationCompleted(response) {
+    let notifications = null
+
     if (response.data.migration) {
-      let notifications = [{
+      notifications = [{
+        title: "New Migration",
         message: "Migration created successfully",
         type: 'success',
         keep: true,
@@ -88,14 +91,15 @@ class NotificationsStore extends Reflux.Store
         }
       }]
     } else {
-      let notifications = [{
+      notifications = [{
+        title: "New Replica",
         message: "Replica created successfully",
         type: 'success',
         keep: true,
         action: {
           label: "View Replica Status",
           callback: () => {
-            Location.push("/replica/tasks/" + response.data.replica.id + "/")
+            Location.push("/replica/executions/" + response.data.replica.id + "/")
           }
         }
       }]

Some files were not shown because too many files changed in this diff