Parcourir la source

update end of experiment

Jérôme BUISINE il y a 4 ans
Parent
commit
1b9d7810e4
2 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. 1 1
      src/components/ExperimentBlock.vue
  2. 4 3
      src/views/ExperimentValidated.vue

+ 1 - 1
src/components/ExperimentBlock.vue

@@ -15,7 +15,7 @@
           </v-layout>
           </v-layout>
           -->
           -->
 
 
-          <h2>Experiment "{{ $route.meta.fullName }}"</h2>
+          <h2>"{{ $route.meta.fullName }}"</h2>
           <!-- <h3>{{ sceneName }}</h3> -->
           <!-- <h3>{{ sceneName }}</h3> -->
 
 
           <slot name="header"></slot>
           <slot name="header"></slot>

+ 4 - 3
src/views/ExperimentValidated.vue

@@ -23,8 +23,7 @@
           <v-icon left>shuffle</v-icon>
           <v-icon left>shuffle</v-icon>
           Continue with a random scene
           Continue with a random scene
         </v-btn>
         </v-btn>
-        <div v-if="!hasScenesLeft" class="headline">You finished all the scene, thanks for your contribution</div>
-
+        <div v-if="!hasScenesLeft" class="headline">You finished all the scenes, thanks for your contribution!</div>
         <v-spacer />
         <v-spacer />
       </v-card-actions>
       </v-card-actions>
     </v-card>
     </v-card>
@@ -78,7 +77,9 @@ export default {
         this.progression[this.experimentName] &&
         this.progression[this.experimentName] &&
         !this.progression[this.experimentName][aScene].done)
         !this.progression[this.experimentName][aScene].done)
 
 
-    this.$router.push(`/experiments/${this.experimentName}/${this.getRandomScene}`)
+    if (this.hasScenesLeft) {
+      this.$router.push(`/experiments/${this.experimentName}/${this.getRandomScene}`)
+    }
   }
   }
 }
 }
 </script>
 </script>