Browse Source

Merge branch 'release/v0.5.4'

Jérôme BUISINE 3 months ago
parent
commit
64c5f229dd
2 changed files with 5 additions and 4 deletions
  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>
           -->
 
-          <h2>Experiment "{{ $route.meta.fullName }}"</h2>
+          <h2>"{{ $route.meta.fullName }}"</h2>
           <!-- <h3>{{ sceneName }}</h3> -->
 
           <slot name="header"></slot>

+ 4 - 3
src/views/ExperimentValidated.vue

@@ -23,8 +23,7 @@
           <v-icon left>shuffle</v-icon>
           Continue with a random scene
         </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-card-actions>
     </v-card>
@@ -78,7 +77,9 @@ export default {
         this.progression[this.experimentName] &&
         !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>