소스 검색

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

George Vrancianu 9 년 전
부모
커밋
1a9b90f57d
4개의 변경된 파일과 10개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 0
      src/components/App/App.scss
  2. 1 3
      src/components/WizardMigrationType/WizardMigrationType.js
  3. 1 1
      src/config.js
  4. 8 4
      src/stores/NotificationsStore/NotificationsStore.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 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 + "/")
           }
         }
       }]

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.